We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

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: 7853
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”