Set validation of a form item in run time modifications
I am loading a text box in the runtime modifications of a form. Currently, this is what I have for the item in my Add to Collection activity
new TextBoxFormItem() With {.Label= new LabelFormItem() With { .Text = Name}, .ItemID = id.tostring, .ArgumentName = Id.tostring }
what would I add to this to include a validation item of Required?
0
-
In case anyone else comes across this, I was able to acheive this by using the AddToCollection activity.
--first I create a ComboBoxFormItem variable and initialize it
--then the collection i'm adding to is ComboBoxFormItem.ValidationItems
--The type of collecton is Geocortex.Forms.Client.Items.Validation.ValidationItem
--The item I'm adding to the collection is new Geocortex.Forms.Client.Items.Validation.RequiredValidationItem() With { .Message = "This field is required" }
0
Please sign in to leave a comment.
Comments
1 comment