• 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: Calendar or Birthday Restrictions

Calendar or Birthday Restrictions 9 years 4 months ago #33321

I have looked and looked and Im not sure I have been able to find what I am looking for. In my form, there is a drop down for an age range (Classroom registration). I would like to restrict the calendar or birthday component based on the drop down.

Based on my research, it looks like the calendar component would be the easiest to restrict, but I am also open to the idea of a date validation and editing the datevalidation.php file.

Here is what I need to accomplish. The user chooses which class they would like to register their child too. The class has an age range associated with it. I would like to restrict the user from being able to choose a date of birth outside the range of the class they are trying to register their child for.

Kindergarten | X
1st Grade | Y
2nd Grade | Z

...some how getting the value of x,y or z to limit the calendar selection. I have looked at all of the calendar articles about controlling and setting min and max, but nothing speaks of these things in conjunction with conditions of another field.
The administrator has disabled public write access.

Calendar or Birthday Restrictions 9 years 4 months ago #33368

*Bump*
The administrator has disabled public write access.

Calendar or Birthday Restrictions 9 years 4 months ago #33369

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Why not define multiple birthday fields and simply display the one corresponding to the class they choose. No scripting knowledge required, just conditional fields setup:

https://www.rsjoomla.com/support/documentation/rsform-pro/getting-started/conditional-fields.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!