Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Group1 "Yes" radio button response to trigger req'd Subgroup1 radio buttons with req'd text fields

Explorer ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

Help I'm stuck!  😞
 
Working on an application PDF form that i'm trying to make as quick and easy to complete by obtaining only the minimal required information needed from the end user.
 
Looking for help with the scripting for a radio button group, where a "Yes" response on the primary required radio button name "Group1" will then trigger a required follow up radio button group named "Subgroup1" in addition to a few required text field responses for some additional subquestions as a result of the Group1 radio set "Yes" response. Hope this all makes sense but added a screenshot below to hopefully provide further context/clarity for the purpose the scripting will fit.
 
Also would it be possible to also hide the subquestion (Subgroup1) radio button set and required text fields unless the primary question is answered "Yes"?
 
Appreciate any help from the Adobe community!  🙂
 
Anthony5E5C_0-1626801943525.png

 

 

Anthony5E5C_1-1626803075827.png

 

TOPICS
Comment review and collaborate PDF, How to, JavaScript, PDF forms

Views

51

Likes

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

correct answers 1 Correct answer

Adobe Community Professional , Jul 20, 2021 Jul 20, 2021
In one of the text fields as "Custom calculation script" add this: if(this.getField("Group1").value == "Yes"){ this.getField("Subgroup1").display = display.visible; this.getField("Current Policy Expiration").display = display.visible; this.getField("Current Carrier").display = display.visible; this.getField("Current Liability Limits").display = display.visible; this.getField("Policy Number").display = display.visible;} else { this.getField("Subgroup1").display = display.hidden; this.getField("Cu...

Likes

Translate

Translate
Explorer ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

Just realized I attached the wrong screen shot of my current form and preliminary fields.

This is the correct screen shot I meant to attach to add context to the help I need is here:

 

Anthony5E5C_1-1626804713476.png

 

Likes

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
Adobe Community Professional ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

In one of the text fields as "Custom calculation script" add this:

if(this.getField("Group1").value == "Yes"){
this.getField("Subgroup1").display = display.visible;
this.getField("Current Policy Expiration").display = display.visible;
this.getField("Current Carrier").display = display.visible;
this.getField("Current Liability Limits").display = display.visible;
this.getField("Policy Number").display = display.visible;}
else {
this.getField("Subgroup1").display = display.hidden;
this.getField("Current Policy Expiration").display = display.hidden;
this.getField("Current Carrier").display = display.hidden;
this.getField("Current Liability Limits").display = display.hidden;
this.getField("Policy Number").display = display.hidden;}

Likes

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
Explorer ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

LATEST

Perfect Worked!  Your Awesome!  Thank you so much @Nesa Nurani for the help on this!  🙂

Likes

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