I would like to know how I can dynamically create a PopupInput with java code. Example use case: At first I fill a variable (list) with values (e.g. from a db query). Let’s assume the value of this variable is: Value1, Value2, Value3. Now I need to ask the for information for each single value with a PopupInput like in the screenshot below.
thank you for the code. In general this looks promising. Unfortunately it fails at the point when it tries to add the “input” to the PopupInput because we never created that. So I still need a possibility to create the PopupInput at all. And of course I need to show it and need a way to catch the results.
I get this error message when executing this code “activity.getForm().getEntries().add(input);”:
This works well so far. But I am struggling to get the output of the PopupInput because the entry “INPUT1” seems to not exist. I tried a few things within a “Script” activity or even in the OnComplete Script of the PopupInput. For example I iterated through “activity.getForm().getEntries()” but the entry “INPUT1” did not exist. But nothing has been working.
Does anybody know how to get the value of my entry? (Remember: That is just pseudo code. In reality I am generating many input fields completely dynamically and cannot generate a static PopupInput.)
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.