• 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: Multiple conditional dropdowns

Multiple conditional dropdowns 8 years 11 months ago #35106

Hello,

I want to make a voting form. The user should be able to rank six persons. I want to make it fool proof so I was thinking of first showing 1 dropdown (1st place) where you have six persons available for choosing. Then after choosing the first one, the second dropdown is populated with only five persons to choose from. After choosing the second one, the third dropdown is populated with only three, and so on. How can I achieve this? Or perhaps there is another way to make sure all the persons are used one time and not, for example two times?

Thank you in advance for your help

Regards, Dennis
The administrator has disabled public write access.

Multiple conditional dropdowns 8 years 10 months ago #35210

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

You can try using the conditional fields feature in order to display a different set of options for the user based on the selections made in a previous field. You can read more about this feature here:

www.rsjoomla.com/support/documentation/r...ditional-fields.html

You can also see an example on this topic on our demo server:

demo.rsjoomla.com/rsformpro/form-example...ge-form-example.html

Another way to achieve your scenario would be to restrict the submissions so that each dropdown option can be used only once, this scenario will require custom scripting, we offer ample examples on how to integrate custom scripts in the component in our online documentation:

www.rsjoomla.com/support/documentation/r...ustom-scripting.html
www.rsjoomla.com/support/documentation/r...asked-questions.html
www.rsjoomla.com/support/documentation/r...zing-rsform-pro.html

A third solution, that also involves custom scripting would be to generate the items of your dropdown fields using custom scripts, this way you could disable one selection after a submission is made. This will allow you to make sure that each option is used for only one submission.
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!