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

Checkbox help

New Here ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

Hi All, 

 

I have a form that I'm having some trouble with. 

I have 3 text boxes: 

Text8.1.1

Text8.1.0

Text8.2.0

 

I want to disable them (gray them out) making them unable to be edited unless Check Box18 is checked. 

If Check Box 18 becomes checked, I want them to become fillable. 

 

Any help?? 

TOPICS
Create PDFs , Edit and convert PDFs , JavaScript , PDF forms

Views

209

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 ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

LATEST

If by 'grey them out' you mean to set them to read only or editable, you can use this code as Mouse UP event of checkbox field :

this.getField("Text8.1.1").readonly = event.target.value == "Off" ? true : false;
this.getField("Text8.1.0").readonly = event.target.value == "Off" ? true : false;
this.getField("Text8.2.0").readonly = event.target.value == "Off" ? true : false;

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