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

If conditions that populate information from textbox A if Checkbox 1 is selected

New Here ,
Mar 08, 2023 Mar 08, 2023

I'm new to creating forms on Adobe Pro. 

I am creating source forms that will autopopulate the formal form. 

 

The Details:-

The source form asks YOUR NAME, and then it asks YOUR ROLE. The form also asks SPOUSE NAME and then SPOUSE ROLE. 

 

Issue:- I would like to autopopulate YOUR NAME on another form, if YOUR ROLE is "Wife". I would want to autopopulate SPOUSE NAME on another form, if SPOUSE ROLE is "Wife". 

 

I hope this makes sense. 

 

TOPICS
PDF forms
1.1K
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Mar 08, 2023 Mar 08, 2023

OK, then as the custom calculation script of the first field you can enter something like this:

 

if (this.getField("YOUR ROLE").valueAsString=="Wife") event.value = this.getField("YOUR NAME").valueAsString;

View solution in original post

Translate
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 ,
Mar 08, 2023 Mar 08, 2023

By "another form" do you mean another PDF file entirely, or another section of this file?

The former is quite tricky to implement. The latter is much easier.

Translate
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
New Here ,
Mar 08, 2023 Mar 08, 2023

It is from the same PDF File. 

Translate
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
New Here ,
Mar 08, 2023 Mar 08, 2023

It is from another section of the same PDF file. 

Translate
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 ,
Mar 08, 2023 Mar 08, 2023

OK, then as the custom calculation script of the first field you can enter something like this:

 

if (this.getField("YOUR ROLE").valueAsString=="Wife") event.value = this.getField("YOUR NAME").valueAsString;

Translate
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
New Here ,
Mar 14, 2023 Mar 14, 2023
LATEST

Thank you!

Translate
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