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!

ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Server Name Restriction

During an install a server name is input into a field.
I need to be able to restrict the characters that are used for the servername
For example if a user inputs a name such as 'Server_Name' and I want to disallow the underscore,
How would i be able to do that?

Thanks in advance.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Server Name Restriction

Hello,

This can be done by developing your own custom action. For instance, you can add an edit box control (SERVER_PROP) on your dialog. Then you can create a custom action which gets the value of the edit box property (SERVER_PROP), validates it format and sets another property (RESULT_PROP) with the validation result. Then you can execute the above custom action on the [Next>] button of your dialog as a published event.

Finally after the above custom action is executed you can add another published event on the [Next>] button like this:
  • Event: Display a specific child dialog
    Argument: <NewDialog>
    Condition: RESULT_PROP="invalid"
This last published event will spawn a modal dialog which will inform the user that the server name is invalid as long as the user don't enter a valid format.

Let us know if you have any questions.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Server Name Restriction

Excellent, thank you very much.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Server Name Restriction

You're always welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”