Hoppa till huvudinnehållet

Is it possible to dynamically set a text box’s validation items using runtime modification?

Kommentarer

1 kommentar

  • Permanently deleted user

    Hi Chris,

     

    Yes, it is possible. For that you will need to use the Add To Collection <T> activity and use your form item validation items in the Collection input argument (e.g. textBoxFormItem.ValidationItems) and the Validation object in the Item input argument (e.g. new Geocortex.Forms.Client.Items.Validation.RequiredValidationItem() With { .Message = "Field required." }). If you need any other type of validations they are accessible via the Geocortex.Forms.Client.Items.Validation namespace.

     

    Hope this helps,

    Sergio

    0

Du måste logga in om du vill lämna en kommentar.