Skip to main content
Participant
June 15, 2025
Question

Auto populate text fields from Drop Down menu

  • June 15, 2025
  • 1 reply
  • 518 views

Hi,

 

I am completey new to forms. I am trying to create a form with a drop down menu on the left, and 9 text boxes to its right that will each have a different value dependant on what is chosen from the drop down menu. There is a tutorial on YouTube that is explaining essentially the same concept. Yet even when I follow that tutorial to the letter, I have a problem where nothing is showing up in the text fields. The drop down menu works fine, but the text fields do not populate.

 

I have the 'commit selected value immediately' ticked so it isnt that.

Below are screen shots of the initial setup, the code (based on the YouTube tutorial) and the end result

 

Any suggestions are appreciated!

 

   

1 reply

Nesa Nurani
Community Expert
Community Expert
June 15, 2025

Where did you place script?
If you put script under 'Validate' tab, you need to replace this line:
var dropdownValue = this.getField("JobStep").value;

with:

var dropdownValue = event.value;

Or simply just use: switch(event.value){

Participant
June 15, 2025

Hi Nisa,

 

the script is in the Calculate tab of the drop down menu

 

Nesa Nurani
Community Expert
Community Expert
June 15, 2025

Can you share your file?
EDIT:
You need to use getField not getfield it's case sensitive.