Skip to main content
Participant
July 10, 2024
Answered

Mise à jour de script dans un formulaire

  • July 10, 2024
  • 1 reply
  • 740 views

Bonjour à tous, j'ai mon formulaire avec comme premiere page ma 'page de saisie'.

 

Lorsque que je clic sur 'enregistrer mon chassis' j'ai cette page de saisie qui ce duplique.

 

Jusque là tout va bien (meme si j'ai un petit plantange au moment de ce clic), mais l'ennuie c'est que mes champs de cette nouvelle page sont renomé donc parfait mais évidement les script de chaque champs ne le sont pas...

 

Je ne sait plus comment m'y prendre.

 

Merci d'avance pour vos conseils

 

Belle journée à vous

Correct answer PDF Automation Station

When you spawn a template and set the bRename paramater to true, the fields are renamed.  If you have calculations that reference those fields they are not going to work on the spawned page because the fields don't exist on the spawned page.  You have to anticipate what the renamed fields will be, extract the prefix from the names, and add the prefix back into the field names of the calculations.  This article explains how.

1 reply

PDF Automation Station
Community Expert
Community Expert
July 10, 2024

When you spawn a template and set the bRename paramater to true, the fields are renamed.  If you have calculations that reference those fields they are not going to work on the spawned page because the fields don't exist on the spawned page.  You have to anticipate what the renamed fields will be, extract the prefix from the names, and add the prefix back into the field names of the calculations.  This article explains how.

Participant
July 10, 2024

Je vous remercie, le seul problème est que je n'arrive pas à avoir le résultat souhaité... Je doit passer à coté de quelque chose mais je n'y arrive pas malgrés les explications détaillées.