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

Show radio button only if there is text in a field

New Here ,
Aug 24, 2020 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?

TOPICS
How to , PDF forms

Views

368

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

Community Expert , Aug 24, 2020 Aug 24, 2020

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;

Votes

Translate

Translate
Community Expert ,
Aug 24, 2020 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;

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
New Here ,
Aug 24, 2020 Aug 24, 2020

Copy link to clipboard

Copied

LATEST

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

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