Make checkbox to auto-fill information

New Here ,
Mar 29, 2022 Mar 29, 2022

Copy link to clipboard

Copied

I created an application form and in one part, 'emergency contact', the customer could fill same information as previous. I want to know how to make checkbox (or radio button- or any feature that I missed) to check and then auto-fill the information from previous boxes. Thank you in advance.

TOPICS
How to , PDF forms

Views

51

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Mar 29, 2022 Mar 29, 2022

Copy link to clipboard

Copied

LATEST

Lets say you want to populate field2 with info from field1, as Mouse UP event of checkbox use this:

if(event.target.value != "Off")

this.getField("field2").value = this.getField("field1").value;

If you wish to add more fields, add them inside curly brackets like this:

if(event.target.value != "Off"){

this.getField("field2").value = this.getField("field1").value;

this.getField("field4").value = this.getField("field3").value;}

Likes

Translate

Translate

Report

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