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

Radio Buttons Unavailable to User

New Here ,
Sep 01, 2022 Sep 01, 2022

Copy link to clipboard

Copied

I'm working on a form where the user will choose which classes that would like to be registered for.  If the user chooses from the "3 Hours AM Sessions" (Group1) and/or the "3 Hours PM Sessions" (Group2), I want to make the "6 Hours Sessions" (Group3) radio buttons either hidden or unavailable.  See picture below for reference. 

 

Screen Shot 2022-09-01 at 12.01.26.png

TOPICS
How to , JavaScript , PDF forms

Views

166

Translate

Translate

Report

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 ,
Sep 09, 2022 Sep 09, 2022

Copy link to clipboard

Copied

LATEST

Hi,

 

You could add an action to run a javascript on each of the radio buttons, in group 1 (AM sessions) and group 2 ( PM sessions) that set the Group 3 (6 hour sessions) to either readonly or hidden.

 

this.getField("Group3").readonly = true;

OR

this.getField("Group3").display = display.hidden;

(you need to change "Group3" above to the name of your radio button group for the 6 hour sessions)

You may also have to add a reset button so this could be undone if someone picks the wrong option.

(this is just the code above but replace true with false,OR display.hidden with display.visible)

Votes

Translate

Translate

Report

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