• 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: Limit radio button options by count

Limit radio button options by count 10 months 3 weeks ago #43509

Hello.
If I have some radio button options like "June 13th, 13:00" and "June 13th, 14:00" how can I restrict the options to accept only up to 10 people per each option? Is there a way to do this?
The administrator has disabled public write access.

Limit radio button options by count 10 months 2 weeks ago #43513

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

This can be achieved in multiple ways, but it will require custom scripting. One option would be to limit the submissions similar to how it is described in this article:
www.rsjoomla.com/support/documentation/r...for-submissions.html

... instead of username or IP you will need to count the number of submissions made with a particular value. You can then stop the submission by triggering a validation error as described here:
www.rsjoomla.com/support/documentation/r...ted/php-scripts.html

Another option would be to generate the items of your radio using a custom script, similar to the one provided here:
www.rsjoomla.com/support/documentation/r...st-from-a-table.html

In your script you could first check the number of submissions made for each option, then if the limit is exceeded disable a particular option by adding "[d]" to the option, as mentioned here:
www.rsjoomla.com/support/documentation/r...lds/radio-group.html
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!