DisplayForm question: Populate TextBox based on user choice in a ComboBox?
Is it possible to populate a TextBox based on what the user chooses in a ComboBox in a Display Form?
As a test I have a list of three items, that is used to populate a ComboBox in a form. Each list item has two values ( name and ID number ). I display the first value ( name ) in the ComboBox. I'd like the user to select a name from the list in the ComboBox, and the corresponding ID number to be shown in a TextBox in the same form.
I've been trying to get this to work using the RuntimeModifications, but I'm not sure where to start, or if it's even possible. The workaround would be to use two forms, I think. (First have the user select the name, and then present the ID number in another form. The real use case is more complex, but the principle is the same).
Any ideas would be very welcome!
-
You will have to use two forms
0 -
Hi Turid
the Runtime Modifications are done to the form contents on the Server and then they are effectively fixed at that point for transport to the Client.
Here is the explanation from the Workflow Help on the Display Form Activity
Runtime Modifications to Forms:
From Essentials 3.9, the Display Form activity contains a new child sequence activity that provides access to the form's object model. This access makes it possible to change the form at runtime. The Form Designer usually creates static definitions of forms. However, you often need to modify a form as it runs using values from a workflow, for example, when a workflow obtains a text value at runtime. To present a form that contains that runtime text value you then need to modify your form definition at execution, for example, to add a specific URL or token to a URL as the form exectutes.
The RuntimeModifications sequence contains a local variable called form that is populated with the live Geocortex.Forms.Client.FormDefinition object. The live object represents the form that is about to be displayed in the client application. You can use activities such as Assign to manipulate any aspect of the form and the items it contains.
Regards
Ralph
0 -
Thanks for your replies! I take it I have to use two forms, then. :)
0
Please sign in to leave a comment.
Comments
3 comments