Buy Now
Sign in

Type of users

rafaelscouto , November 27 2017
r
rafaelscouto

Good morning, I have a registration form and I need to link it to some types of users.

These users will have access to certain pages, which will differ according to the type of user.

These types are:

Administrator, manager, accredited, client and administrative assistant. You may have other types in the future.

I have already managed to save the data in database and bind to the joomla user system, in case, whenever I make a new registration it already list as user joomla.

I just do not know how to link these new users to the type of access I want.

Help me

GreyHead

Hi rafaelscouto ,

You can set a form variable in the User Group of of the Joomla! User action - if you change the value of the variable you can add different users to different groups.

Bob

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much

r
rafaelscouto

Okay, I think I got it.

I have another problem, there is a field called "CPF" which uses the following mask "xxx.xxx.xxx-xx". The problem is that this field will be used as a joomla login password.

And he's saving the numbers along with the dots and dash.

How do I get only the numbers?

I'm using the Save User option

GreyHead

Hi rafaelscouto ,

There is an option for the Input Mask to removeMaskOnSubmit - see the docs here

You could alternatively use the PHP FILTER_SANITIZE_NUMBER_INT to clean it after submission.

Bob

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much