Auto-fill text field (allowing for override), based on drop-down field value
Dear all,
I'm working with Actobat Pro, and have a PDF fillable form with 2 fields, named "Sender" and "Recipient", that contain identical drop-down values (e.g. "Dept 1", "Dept 2", "Dept 3", etc.). I also have 2 other fillable text fields named "SenderEmail" and "RecipientEmail" for which I have a list of default values (e.g. "Dept1@company.com", "Dept2@company.com", "Dept3@company.com", etc.).
I want the "SenderEmail" and "RecipientEmail" fields to auto-fill with the default values, based on the value that is selected in the corresponding "Sender" and "Recipient" drop-down field, but I want the user to be able to override the auto-filled text with a custom value (e.g. "John.Dept1@company.com", "Jane.Dept2@company.com," "Joe.Dept3@company.com", etc.).
Anybody have a recommendation on how to accomplish this? I'm not javascript fluent, but can figure it out pretty well if somebody gives me examples or a tutorial. (FYI: I tried this guidance -- https://acrobatusers.com/tutorials/change_another_field/ -- but it won't work, I think because the drop-down values in the "Sender" and "Recipient" field are identical.)
Thank you so much!
