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

Masquer/démasquer des zones de plusieurs champs et leur mise en page sur un formulaire PDF

New Here ,
Feb 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

Bonjour,

Est il possible de faire apparaitre une suite de champs à renseigner en fonction d’une case à cocher ?

Sur mon formulaire en pièce jointe, j’aimerais que le tableau sur la mission Electricité apparaisse uniquement si cette nature d’intervention est cochée, ainsi de suite pour chacune des autres missions Levage, Gaz.....

J’ai utilisé ADOBE ACROBAT DC.

TOPICS
PDF forms

Views

324

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 09, 2023 Feb 09, 2023

Copy link to clipboard

Copied

LATEST

You can show or hide fields based on the value of a check-box, but not the static text and graphics around them, so when they are hidden it will just be a table that can't be filled in.

The basic code for that is:

var fields = ["Text1", "Text2", "Text3"]; // etc.
var bEnableFields = this.getField("Checkbox1").value!="Off";
for (var i in fields) {
	var f = this.getField(fields[i]);
	f.display = bEnableFields ? display.visible : display.hidden;
}
if (!bEnableFields) this.resetForm(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