Hi
We are trying to validate a field in VC UI.
Validation required is the entered value should be part of an output list of a webservice executed.
In detail: a webservice is executed at page load which returns a plant list.
Now when a user fills in the field for plant input, it should not allow any value which is not returned by the webservice.
I am trying to use the validate field option at the bottom of the layout for the field properties.
But no clue on how to use this service, not triggering it every time a value is entered.
Lavanya
Request clarification before answering.
Hi Lavanya,
in the validation part you can enter some rules. In this dialog you need to define the condition and a value. For the value you can also define an expression. I think in your case you will need it to check whether the value entered is part of the list.
Nevertheless this validation will be done every time a value will be entered for the specific fields. So this is exactly that you've been afraid of. Another idea would be to do a kind of 'manual' validiation (so this means you need to model this by yourself) before saving the new data to the backend. Maybe have a popup that tells which values are wrong and what to choose instead.
Or don't use a text field but a drop down list filled by the values of your webservice or something like this. So your users won't be able to fill in anything different than you'd like to.
Regards
Anja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.