Answered
Hi all
Is it possible to make Acrobat to automatically copy the data just typed in a text-field and duplicate it in another text-field?
I want to take a userid that a user just typed in a textfield and make Acrobat copy that in a text-field below. Pluss that it has to add the follow text: @gmail.com
Example:
Textfield A: _____________
Textfield B: _____________ [at] gmail [dot] com
User types in "test" and it ends up like this:
Textfield A: test
Textfield B: test [at] gmail [dot] com
// Custom Validate script for Textfield A
// Get the email address field
var f = getField("email");
// Set the email address field if it's empty
if (!f.valueAsString) f.value = event.value + "@gmail.com";
Change "email" in the code above to whatever you're using for the name of the email address field.