I have a custom validation that for some reason I can't get to work in a webview but is working fine in the vCO client. I am doing quite a few of these and all the others are working fine. The custom validation has a fairly long name to the action. I also pass the validtion 3 parameters which are all arrays. To troubleshoot it I simply set the validtion routine to spit back a string with each of the array lengths. This error pops up fine and displays all of the arrays fine in the vCO client but when I try to run it from the webview I get nothing returned.
Validations in the webviews are calculated by steps. If your action has for input a field of the same step it may not work if you placed your input in the same step.
2 of the inputs are in the same step and one of the inputs is from a previous step. Something like this:
Step 1 - Array A
Step 2 - Array B and C
Custom validation is on the input for array C passing the action all 3 arrays.
I am thinking maybe I can trick this with a data binding on a field in Step 2 and hiding the input of that field? Bind array D to array A then pass arrays B,C,D to the action?
Sometimes it happens that the validation is not called once the last input has been filled but before.
Moving the last input as the first parameter of the action can help to trigger a new validation.
I just figured out this was all operator error (I think). It appears the validation does not trigger on an array until a value is placed in the array. I think the validation does trigger on other fields even when they are left empty as I have had to account for null values in my validations