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
Former Member
0 Likes

As I mentioned, webservice pads the code to 18 digits with 0s.

But the user will enter only enter the code which could be 9 digits or 10.

If we know specifically it is 9 we might take the last 9 digits of the returned value to fill the drop down list.

But that is not static.

Former Member
0 Likes

In this case, Count the length of input value (count@plant) and if the count is 9 then padd 10 if the count is 10 the padd 9 '0'.