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

SELECTED RADIO BUTTON HIDES TEXT FIELD

Community Beginner ,
Oct 11, 2018 Oct 11, 2018

Copy link to clipboard

Copied

1.png

When "No" is selected I want the "Employer" text to be hidden as well. Can someone help me?

2.png

I'm probably doing it incorrectly, but this is how i did this:

3.png

TOPICS
Create PDFs

Views

1.1K

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
1 ACCEPTED SOLUTION
Community Expert ,
Oct 11, 2018 Oct 11, 2018

Copy link to clipboard

Copied

As the Mouse Up event of both radio-button fields enter this code:

this.getField("Employer_...").display = (event.target.value=="No") ? display.hidden : display.visible.

Enter the actual field name between the quotes in getField, though.

View solution in original post

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
Community Expert ,
Oct 11, 2018 Oct 11, 2018

Copy link to clipboard

Copied

As the Mouse Up event of both radio-button fields enter this code:

this.getField("Employer_...").display = (event.target.value=="No") ? display.hidden : display.visible.

Enter the actual field name between the quotes in getField, though.

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
Community Beginner ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

I changed the field name to "Employer_TEXT_FIELD"

i'm getting a syntax error:

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
Community Expert ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

At the end of the last line use ; not .

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
Community Beginner ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

THANK YOU try67 and Bernd Alheit !!

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
Community Expert ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

Put the text "EMPLOYER:" in a read-only text field. Then you can also hide this field.

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
Community Beginner ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

is there a way to do this without creating additional fields?

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
Community Expert ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

I don't know.

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 ,
Apr 28, 2023 Apr 28, 2023

Copy link to clipboard

Copied

LATEST

I WANT TO MAKE MULTIPLE FIELDS VISBLE OR HIDDEN 

FIELDS VISIBLE ONLY ON COMBINATION OF MARRIED FEMALE 

TWO CHECK BOXES 

1. MALE 2. FEMALE

1.MARRIED   2.UNMARRIED

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