Copy link to clipboard
Copied
Hello all,
I am creating a form and I have a list box that has three values in it (or four if you include the black space). I would like a text box to auto-populate with a value based on the value of the list box. I found this from another thread and have tried to adapt it for my purpose but I am not getting any value to load. What is posted is modified.
event.value = (this.getField("List Box 1").valueAsString=="1")?"": apple
Any help would be appreciated
I might still need help with the defining of the name. I am trying to use what was posted previously first.
Thank you for the help that you have provided.
Copy link to clipboard
Copied
Check the Javascript console for errors.
Copy link to clipboard
Copied
I am not familiar javascript so I would need a little guideance.
Copy link to clipboard
Copied
Press ctrl-j or cmd-j
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thank you for this. I will read it over and see if I can use it to adapt to what I have.
Copy link to clipboard
Copied
If "apple" is text then it must be in quotes. If it's the name of a variable then you have to define that variable first, and that's not present in the code you posted.
Copy link to clipboard
Copied
I might still need help with the defining of the name. I am trying to use what was posted previously first.
Thank you for the help that you have provided.