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!

schwarzsurfer
Posts: 49
Joined: Wed Feb 10, 2016 11:06 am

How to prohibit space characters in edit boxes?

Hello,

is there a way to prohibit space characters to be entered in a edit box? I have to get some servernames and stuff from the user and it will not work if there will be entered a space key in the servername by accident.

Thank you!

Marian
Ich weiß, dass ich nichts weiß!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to prohibit space characters in edit boxes?

Hi Marian and welcome to Advanced Installer forums,

You can validate the user input through a custom action. For details, please check the Validate Email address forum thread which debates a similar subject.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
schwarzsurfer
Posts: 49
Joined: Wed Feb 10, 2016 11:06 am

Re: How to prohibit space characters in edit boxes?

Thank you for your response.

So it is possible to validate the entered data and based on that allow to continue or not, but it is not possible to prevent a special character like "space" to be entered in that edit box?

Marian
Ich weiß, dass ich nichts weiß!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to prohibit space characters in edit boxes?

You're welcome Marian,

I'm afraid you cannot prevent a character from being entered. You can only validate the entered data.

If you need any help, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”