Skip to main content
Participant
March 3, 2023
Question

Autopopulate field based on answer of previous field

  • March 3, 2023
  • 1 reply
  • 1527 views

I'm trying to set up a form where Dropdown1 is a list of police departments to choose from.  I would like it to autopoluate the address of the department chosen into the next texbox of the form.  I have created an export value (address) for each police department in Dropdown1.  Where I run into issues is setting up the next field to accept the export value of the previous field.  I have tried various scripts found in other posts but none seem to be working.  I think I'm either missing a step or the others are not requesting exactly what I am looking for.  I am a novice at scripts.  Thanks!

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
March 3, 2023

Where did you use script?

If you are using script in the dropdown field, use it as 'calculate' script, not 'validate'.

Participant
March 3, 2023

So I was able to figure out how to populate the next field by adding the script to the address field.  It tests successful.  My next question, is there any way to populate a third field with a different set of criteria?