• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: registration

registration 11 years 1 month ago #27031

  • doyen
  • doyen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Sorry for my english

I use a RSform form for registration
I would like to force the user to use a different name for its username
is what I can do that
The administrator has disabled public write access.

registration 11 years 1 month ago #27045

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

I'm assuming you have selected two different fields, one for name and one for username, when mapping the fields required for the Joomla! user registration.

You could try using the $invalid method within "Scripts called on form process" to check if both fields are the same and invalidate one of the fields. Various examples on using this method can be found here:

www.rsjoomla.com/support/documentation/v...602-php-scripts.html
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

registration 11 years 1 month ago #27061

  • doyen
  • doyen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Thank you for your help

but I is not the skills required in php I will try to look in the forum

thank you again
The administrator has disabled public write access.

registration 11 years 1 month ago #27078

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

You can use a similar as the following script within "Scripts called on form process" area(backend > Components > RSForm!Pro > Manage Forms > your form > Properties > PHP Scripts):
if($_POST['form']['my-name-field'] == $_POST['form']['my-username-field']){
	$invalid[] = RSFormProHelper::getComponentId('my-username-field');
}

The script checks if both fields have the same value and invalidates one of them. You will have to change "my-name-field" and "my-username-field"(found twice) with your field exact names.
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
The following user(s) said Thank You: doyen

registration 11 years 1 month ago #27151

  • doyen
  • doyen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
thank you very much

very appreciate
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!