OlegK
Posts: 7
Joined: Tue Jan 02, 2018 9:37 am

Edit box content verification

Sun May 19, 2019 2:44 pm

Hello :)
I would appreciate some help.
I want to achieve the following:

In the Dialogs page I have a Dialog that has an edit box that the user enters some text and it is entered into a property.
I wish to verify the contents of the edit box using a regex pattern or something of the sort when pressing "Next" or when entering the text.
Is it possible?

Thank you very much!

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: Edit box content verification

Mon May 20, 2019 9:16 am

Hello Oleg,

I think that this can be achieved through a custom action.

For instance, you said that you are saving the user's input into a property. That property can be retrieved in your custom action, stored in a variable and then you can apply the regular expression on that variable. For more information about this, please have a look on our "How to set an installer property using custom actions" article which I think you may find useful.

Since the custom action will be triggered from a dialog control, you should add it (in the "Custom Actions" page) as a custom action without sequence. In order to add a custom action without sequence, all you have to do is to press the "Add custom action without sequence" button which is placed to the right side of the custom action's name.

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”