EditBox validate! - Advanced Installer Community
wayi
Posts: 1
Joined: Mon Jun 03, 2019 11:02 am

EditBox validate!

I have defined some editbox in my form, how can i validate if edit box has a valid format, for example url or link
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: EditBox validate!

Hello and welcome to Advanced Installer forums,

I am afraid we do not have predefined support for such a task.

However, this can be achieved through a custom action.

The "Edit Box" control has a property assigned to it which stores its value. You can retrieve the value of that property (i.e. the value of what the user inputs in the edit box) and then apply a your validation algorithm on it.

For more information about how you can retrieve the value of a property into your script, please have a look on our "How to set an installer property using custom actions" article which I think you may find useful.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”