Skip to main content
Known Participant
November 5, 2021
Question

Storing drop down menu choices in another field

  • November 5, 2021
  • 1 reply
  • 507 views

Hello.

I am currently making a PDF form for warranty issues on machines. I have 3 drop down boxes that autofill other text boxes with pre determined text. i would like to store the dropdown choice (name only) in another field so that you can see what warranty has aleady been done, is there anyway of doing this? Sorry i am quite new  to this so apologies in advance!

Thanks

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
November 5, 2021

Just copy the value directly, using a calculation script. For example:

event.value = this.getField("Dropdown1").valueAsString;

John CorfAuthor
Known Participant
November 5, 2021

sorry I probably didnt explain it very well before!

I also have a partial clear button for the form that clears the drop down menus so more warranty issues can be added therefore, if i were to use the code suggested will it clear the text field too? I would like the text field to store the previously input information (drop box selections) then add the next set of  Information (drop box selections) after the form has been cleared again

 

Hopefully that makes sense?

 

Sorry again!

try67
Community Expert
Community Expert
November 5, 2021

If you don't want the fields to clear their values when you reset the form then you need to also change their defaultValue property.

Do you mean that you want the text field to add each new value of the drop-down as it's being selected?