Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

I'm looking for help on creating a javascript for the following scenario

Community Beginner ,
Nov 20, 2025 Nov 20, 2025

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

TOPICS
JavaScript , PDF forms
43
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2025 Nov 20, 2025
LATEST

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines