Copy link to clipboard
Copied
I'm trying create form for screen hire, but limiting the quantity of screens that can be hired to 2.
We have 43" screens, 55" screens and 65" screens, so 3 options.
I have all ready setup checkboxes for each screen size and sourced a javascript the only allows for up to 2 screen sizes to be selected with the remaining screen size checkbox the become read only.
For the quantity of each screen I will be using radio buttons, where you can select either 1 or 2.
So the script I need help with is as follows:
If the client selects only a 43" screen, they can select either the "1" or "2" radio button related to 43" screen.
If the client selects a 43" screen and the 55" screen, they can only select the "1" radio button related to 43" and 55" screens and can not select "1" or "2" for the remaining 65" screen ( i'm now think it may help have additional radio button for each screen type set as default set as "0")
I will need this to work for any combition of up to 2 screens.
If it helps my checkbox titles are "SS1" for the 43", "SS2" for the 55" and "SS3" for the 65" Screen.
Hope this all makes sense? my head hurts now!
Any help would be great
Copy link to clipboard
Copied
Use a drop-down field instead of radio-buttons. It's much easier to control. You can use a script to set the options it has, based on the values of the other fields.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more