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

36

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
Adobe Community Professional ,
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;

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