• 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: Field input check for usernames on the site?

Field input check for usernames on the site? 10 years 9 months ago #24189

Hi,
We have a tournament registration form set up for multiple players in each team. And we would like one of the input fields to check if the value matches any of the registered users on our site since every contestant should be registered to sign up. Is this possible through the attributes ? If so, could anyone please help me a bit here since I do not know the value that would be placed in there.

Sincerely,
John.
The administrator has disabled public write access.

Field input check for usernames on the site? 10 years 8 months ago #24208

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
If you simply wish to only allow registered users to submit the form, a much easier solution would be to use the default Joomla! access levels. You can display the form through a menu item and set the access level for that menu item as 'Registered'. This way, only registered users will be able to access the form in order to submit it.

You can also add the following script in Components >> RSForm!Pro >> Manage Forms >> edit your form >> Properties >> PHP Scripts >> 'Scripts called on form display' area:

JHTML::_('behavior.tooltip');
$user = JFactory::getUser();
if($user->id <= 0)
$formLayout = 'Log in first';

This script will only allow the displaying of the form's layout if the user accessing it is logged in.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
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!