cancel
Showing results for 
Search instead for 
Did you mean: 

Text field defaults and validation

binduwavell1
Champ in-the-making
Champ in-the-making
Please forgive this newb question. I have reviewed the docs and spent some time reviewing the UI for 1.4.5. I'm not sure why, but I can't seem to figure out how to specify a default value for a text form field without creating a new field stencil and writing a bunch of angular/js code.

Taking a step back, we are kicking off a workflow in Activiti Enterprise from an external system. We pass in a bunch of captured values from the source system, part of the workflow use case is for users to validate these values. So we need to have a form that shows these process properties (or in some cases values that were entered previously via a previous form). The idea is for users to validate the values and update the values if they are incorrect.

What is the simplest way to arrange for the text fields to have default values loaded from process variables or previous form fields?

On a similar note, imagine that I'm accepting input of a social security number. Is the only way to validate the format to write form level JavaScript code or another custom field? What if I also have several phone number fields, again with the JavaScript? Is there no way to specify at least a regular expression for text entry?

Is there a way to configure a default value for a date field, checkbox field, etc?

Sorry again if these are obvious questions, and thanks in advance for any advice you can give on these topics.
1 REPLY 1

fstnboy
Champ on-the-rise
Champ on-the-rise
Hi binduwavell,

The field name has to be the same as the variable name that stores the value you want to display. This works for all field types, not only for for text fields.

Regards,