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.


Hide field (or reveal) based on Radio Button selections.....

Contributor ,
May 21, 2021 May 21, 2021

Copy link to clipboard

Copied

Hi all,

 

I have an issue which eludes me - I have  two Radio Buttons (Field Name "Group1") with options set to either "Choice 1" or "Choice 2" respectively. I have another field called "Multi" which in either case of Radio Button selection (Choice 1 or 2 being made), I would like to make the "Multi" field hidden, and if the form is then reset, the field ("Multi") should then be visible again.

 

I can get one or other choice made to work, but upon reset of the form, the field "Multi" remains hidden....any assistance greatly appreciated.

 

 

TOPICS
PDF forms

Views

188

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 , May 21, 2021 May 21, 2021
As calculation script of "Multi" field add this: event.target.display = this.getField("Group1").value == "Off" ? display.visible : display.hidden;

Likes

Translate

Translate
Adobe Community Professional ,
May 21, 2021 May 21, 2021

Copy link to clipboard

Copied

As calculation script of "Multi" field add this:

event.target.display = this.getField("Group1").value == "Off" ? display.visible : 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
Contributor ,
May 21, 2021 May 21, 2021

Copy link to clipboard

Copied

LATEST

Thanks again Nesa! I was pre-occupied with using the "Choice1" or "Choice2" options to trigger the display, and it's not - it's on the "Off" - Duh! 😉

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