• 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: User to log in before filling out a form

User to log in before filling out a form 11 years 10 months ago #24094

  • visualt
  • visualt's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
As the title suggests, I want the user to log in before filling out a form. Does anyone know how can I achieve this?

Any help would be appreciated.
The administrator has disabled public write access.

User to log in before filling out a form 11 years 10 months ago #24098

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

You can try one of these 2 approaches:

1. If you are showing the form via RSForm!Pro menu item, you can simply restrict it to the registered user group.

2. Use a custom script in the "Scripts called on form display area" that will check if the user is not logged in and replaces the form with a custom message:
$user = JFactory::getUser();
if($user->id == 0)
$formLayout = '<p><font color="red"><strong>Please login to see the form</strong></font></p>';

More information on the specialized php scripting areas of RSForm!Pro 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.
The following user(s) said Thank You: jeffng
  • 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!