Copy link to clipboard
Copied
I want to create a form in indesign, where let's say the first question is "Hello, what is your name?".
Under that they will use a text field filling their names, let's say "John".
And then the next question will auto-update itself to "Hello John! How are you?"
So kind of like if this was a script it would write "Hello $[NAME] how are you?"
I never wrote code or anything, this is just something I saw looking other places, I would much appreciate any help!
And this form needs to work offline.
This can only and need to be done in Acrobat...
Add this to your second field as a custom calculation script.
var oName = this.getField("name").value ;
event.target.value = "Hello "+ oName + "! How are you?";
Copy link to clipboard
Copied
Copy link to clipboard
Copied
This can only and need to be done in Acrobat...
Add this to your second field as a custom calculation script.
var oName = this.getField("name").value ;
event.target.value = "Hello "+ oName + "! How are you?";
Copy link to clipboard
Copied
Thank you! Would it be possible to create an interactive pdf file in InDesign and then add these scripts Acrobat?
Copy link to clipboard
Copied
Sure...