cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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

0 Likes
View Entire Topic
anja_engelhardt2
Employee
Employee
0 Likes

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