I would like to populate a dropdown list with data previously gathered within the same form. How do I do this?
Solved! Go to Solution.
Views
Replies
Total Likes
There are a variety of ways. For example, if 'stooges' is a drop-down list and 'stoogeName' is a text field, you could put the following JavaScript on the exit event of 'stoogeName',
// form1.page1.subform1.stoogeName::exit - (JavaScript, client)
form1.page1.subform1.stooges.addItem(this.rawValue);
Steve
Views
Replies
Total Likes
There are a variety of ways. For example, if 'stooges' is a drop-down list and 'stoogeName' is a text field, you could put the following JavaScript on the exit event of 'stoogeName',
// form1.page1.subform1.stoogeName::exit - (JavaScript, client)
form1.page1.subform1.stooges.addItem(this.rawValue);
Steve
Views
Replies
Total Likes
That worked! Thank you very much!
Views
Replies
Total Likes
Another related question -
How do I make the data populate in subsequent instances of that dropdown list?
Views
Replies
Total Likes
That depends on the structure of your form and the binding properties for the drop-down. If each page, sub-form, and drop-down is named explicitly you will have to replicate the script for each unique instance of the drop-down. Otherwise, I would have to see the form.
Steve
I guess they all are uniquely named because they are in different subforms. I can't use fragments because I need unique data values, right?
Here is my form.
You can see the qobj subform repeat.
The qaddobj_btn calls the instance manager.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies