Copy link to clipboard
Copied
I am creating a lot of forms from scratch and I have to create a dropdown box with 15 options. Is there a way to create a dropdown option and save it to reuse in my future forms? I hate to waste time creating the same dropdown box over and over in different forms. Any suggestions would be greatly appreciated.
Copy link to clipboard
Copied
You can copy the field from one file to another.
Or you can use a script to populate a field with the items, like this:
this.getField("Dropdown1").setItems(["Select", "Option 1", "Option 2", "Option 3"]);
The first item in the list is the field's default value.
Copy link to clipboard
Copied
Thanks so much, I didn't know you could copy/paste like that from one form to the other. Much appreciated! I will try the script too as that is a better long term solution.
Copy link to clipboard
Copied
Just be aware that if you copy and paste the field in the same file you must also rename the copy, otherwise the two fields will always be copies of each other and have the same value.
Copy link to clipboard
Copied
Thanks for the warning, I will watch that.