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

Case à cocher dynamique

New Here ,
Nov 14, 2025 Nov 14, 2025

Bonjour,

Je dois créer des cases à cocher radio (CR2 - CR3) qui sont active seulement si la case à cocher radio -Évaluation est coché.

Est-ce possible ? et comment faire ?

Merci

diane_3028_0-1763144619876.png

 

TOPICS
PDF forms
74
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 ,
Nov 14, 2025 Nov 14, 2025
LATEST

There are a few different ways to create enabled fields. And they can be combined.

1.   Show/hide fields

2. Make fields ReadOnly

3. Change color of field to make it look inactive. 

 

These articles will help.  

https://www.pdfscripting.com/public/Hiding-and-Showing-Form-Fields.cfm

The same techniques discussed in the article can also be used to set the readonly field property. 

 

https://acrobatusers.com/tutorials/js_disabling_fields/

 

Here's some sample code for the "Evaluation" field: 

Placed in the MouseUp 

this.getField("CR2").readonly = (event.target.value == "Off");
this.getField("CR3").readonly = (event.target.value == "Off");

 

This code makes the CR fields readonly when the Evaluation field is unchecked. 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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 ,
Nov 14, 2025 Nov 14, 2025
LATEST

There are a few different ways to create enabled fields. And they can be combined.

1.   Show/hide fields

2. Make fields ReadOnly

3. Change color of field to make it look inactive. 

 

These articles will help.  

https://www.pdfscripting.com/public/Hiding-and-Showing-Form-Fields.cfm

The same techniques discussed in the article can also be used to set the readonly field property. 

 

https://acrobatusers.com/tutorials/js_disabling_fields/

 

Here's some sample code for the "Evaluation" field: 

Placed in the MouseUp 

this.getField("CR2").readonly = (event.target.value == "Off");
this.getField("CR3").readonly = (event.target.value == "Off");

 

This code makes the CR fields readonly when the Evaluation field is unchecked. 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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