Highlighted

Show radio button only if there is text in a field

New Here ,
Aug 24, 2020

Copy link to clipboard

Copied

I have numerous text fields and radio buttons on my form. I want to show a specific radio button only when text is entered in a specific field. Right now, I'm using the "on blur" function, but that doesn't check if there is text in the field. 

 

Is there javascript that will check for text in the field on blur, then show the radio button?

You can use this in textfield custom calculation script:

if(event.value != ""){
this.getField("Radiobutton").display = display.visible;
}else this.getField("Radiobutton").display = display.hidden;

TOPICS
How to, 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

Show radio button only if there is text in a field

New Here ,
Aug 24, 2020

Copy link to clipboard

Copied

I have numerous text fields and radio buttons on my form. I want to show a specific radio button only when text is entered in a specific field. Right now, I'm using the "on blur" function, but that doesn't check if there is text in the field. 

 

Is there javascript that will check for text in the field on blur, then show the radio button?

You can use this in textfield custom calculation script:

if(event.value != ""){
this.getField("Radiobutton").display = display.visible;
}else this.getField("Radiobutton").display = display.hidden;

TOPICS
How to, PDF forms

Views

52

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
Aug 24, 2020 0
Engaged ,
Aug 24, 2020

Copy link to clipboard

Copied

You can use this in textfield custom calculation script:

if(event.value != ""){
this.getField("Radiobutton").display = display.visible;
}else this.getField("Radiobutton").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
Reply
Loading...
Aug 24, 2020 1
New Here ,
Aug 24, 2020

Copy link to clipboard

Copied

Thank you, this is exactly what I was looking for!

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
Reply
Loading...
Aug 24, 2020 0