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

If/Then Statements

New Here ,
Apr 22, 2025 Apr 22, 2025

I have read the available information for if/then statements, and it seems they are all regarding calculations.. 

I am here to see if there is a way to do "if this checkbox is selected, then allow this text field to be filled out" or even "if this text field has text entered, then allow this text field to be filled out"..

TOPICS
Edit and convert PDFs , How to , PDF , PDF forms
99
Translate
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 ,
Apr 22, 2025 Apr 22, 2025

Place this as a mouse up action in the checkbox:

if (event.target.value != "Off") {this.getField("TEXTFIELDNAME").readonly = false;}
else {
this.getField("TEXTFIELDNAME").readonly = true;
this.getField("TEXTFIELDNAME").value = this.getField("TEXTFIELDNAME").defaultValue;
}

Acrobate du PDF, InDesigner et Photoshoptographe

View solution in original post

Translate
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 ,
Apr 22, 2025 Apr 22, 2025

Place this as a mouse up action in the checkbox:

if (event.target.value != "Off") {this.getField("TEXTFIELDNAME").readonly = false;}
else {
this.getField("TEXTFIELDNAME").readonly = true;
this.getField("TEXTFIELDNAME").value = this.getField("TEXTFIELDNAME").defaultValue;
}

Acrobate du PDF, InDesigner et Photoshoptographe
Translate
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 ,
Apr 22, 2025 Apr 22, 2025
LATEST

JR Boulay beat me to the answer by 20 seconds. 🙂

 

 

- Author: InDesign Masterclass: Type & Tables, InDesign Masterclass: Text Techniques, ePublishing with InDesign. Consultant & Trainer: ID, IC, AI, PS, Au, PDF, #508 Accessibility
Translate
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