I am passing a CDT in to a form. ri! input. The form has like 6 fields. The user can enter data and it gets saved to the cdt fields.
However, how can I make one of the fields have a default value?
For example, I want one of the fields to, by default, have English already selected so the users dont have to select it from the dropdown...so its always English, unless they want to change it.
Any suggestions.
Thanks,
Discussion posts and replies are publicly visible
There are two ways I typically accomplish this. One is to set the values in the fields of the CDT in the process before it is passed in as a node input. The other is to create a local variable or variables that are set to a default value when the form is loaded. The fields on the form then use those local variables as their values and save into them. Then, when a submit button or link is pressed, the values of those local variables are saved into the rule inputs.