Form Control Visibility and Validation
Hi All,
I have a display form on which I'm setting the visible property of a listbox control to false based on the value an input argument. The control has a "required value" validation which is fired even when the control is not visible. I think the visible status of the control should override the validation constraint where visible = False.
Here's the form and validation not letting me proceed without populating the invisible control.
/customer/servlet/servlet.FileDownload?file=00P6000000elzfFEAQ
I can use a runtime to fill with bogus values and clear them in a subsequent activity but that seems wrong. Anyone any other ideas?
Thanks.
-
Did you try to remove all validations in the RuntimeModifications?
form.Find(Of TextBoxFormItem)("TextBox1").ValidationItems.Clear()
0 -
Yes I tried doing that in an assign, but got an "Invalid L-value expression" with form.Find(Of ListBoxFormItem)("ListBox1").ValidationItems. What activity should I be using?
0 -
The Clear method does not return a value, so it cannot be used in an Assign statement. In this case you should use the Invoke Method activity, with TargetObject set to form.Find(Of ListBoxFormItem)("ListBox1").ValidationItems and MethodName set to Clear .
0
Please sign in to leave a comment.
Comments
3 comments