Skip to Content
avatar image
Former Member

Enable Close the form although the et_Validate event was catched by editText item

I activate et_Validate event on a form because I want to check validation of EditText input. but I want to enable to click only on close form. Meantime when I stand on a field, I can't close the form till I write valid input.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 24, 2017 at 07:23 PM

    There are some workaround for your issue.

    1 - You leave the user click in any other place as long it is blank

    2 - You could put your validation in your next step (I am assuming that you will click in one button after all)

    3 - Use lost focus event or validate with before action = false, the user will be able to click somewhere else and he will also trigger your validation.

    If you really want to do this way, the only possibility that I can think is:

    Create a static var and set to true, something like

    Event FormClose beforeAction = true

    static bool formCloseTriggered;
    formCloseTriggered = true

    Event Validate beforeAction = true

    if (formCloseTriggered)

    Event FormClose beforeAction = false

    formCloseTriggered = false



    Add comment
    10|10000 characters needed characters exceeded