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

Repeating details via dropdown list

Participant ,
Jun 14, 2023 Jun 14, 2023

Copy link to clipboard

Copied

Hi,

we have a form where they have to fill in contact details for 4 Trustees. Later in the form they want a drop down box where they can select a particular Trustee and then the details would be automatically populated for this new section in order to avoid the client having to put in their info twice. Is this possible

Thanks

TOPICS
PDF forms

Views

139

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
Community Expert ,
Jun 15, 2023 Jun 15, 2023

Copy link to clipboard

Copied

LATEST

Hi,

Yes this is possible, although you would have to code the functionality, and how complex depends on how you enter the initial data, if you have a number of fields for the trustees, then you could just code to add and remove the names of trustee's as they are added. Then you would need to use some sort of information to be able to link back to the set of fields that contain the information.

 

I would be tempted to create the fields for the trustees something like

Name - Trustee1.name - Trustee2.name - .......

Address Line 1 - Trustee1.addressLine1 .......

Phone Number - Trustee1.phoneNumber .....

 

Hopefully you get the idea, and then when you are adding them to the drop down list, you have the method to insert which allows you to provide a value shown to the user, and an export value, which could be "Trustee1"

 

Then when it is selected, in the fields that follow the drop down you could populate them using the following

(example code, not checked but to give the idea)

this.getField("selectedTrusteeName").value = this.getField( event.value + ".name").value

this.getField("selectedTrusteeAddressLine1").value = this.getField(event.value + ".addressLine1").value

 

And this could be triggered on the validate of the drop down list, therefore updating when the value is changed.

 

If you are able to provide a sample of how far you have come then we can provide more tips/guidance as to how to complete this task.

 

Hope this helps

Votes

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