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!

Novco007
Posts: 1
Joined: Tue Mar 03, 2015 5:23 pm

Validate Email address

I have a requirement that requires the user to input an email address.

I like to be able to make them put in their email address twice, to ensure that they have typed it correctly.

But how do I do this. I'd like to achieve either;

a dialogue box appears when they click on next if either of their email address are incorrect.

or, if that isn't achievable, the next button is disabled until the email address match.

Thanks

Chris
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Validate Email address

Hi Chris and welcome to Advanced Installer forums,

First of all, you need to add two edit box controls where the user will be asked to enter the email address. Assign the following Windows Installer properties to the related controls:
  • EMAIL_PROP
  • EMAIL_PROP_CHECK

In order to enable/disable the Next > control you can use control conditions.
First control condition:
  • Condition: EMAIL_PROP = EMAIL_PROP_CHECK
    Action:Enable
Second control condition, complementary to the above one:
  • Condition:NOT (EMAIL_PROP = EMAIL_PROP_CHECK)
    Action:Disable
The sample project which implements this scenario is attached to the forum thread. You are more than welcome to download and take a look at.

You can also take a look on the Email ID validation forum thread which debates a similar subject.

If you have any questions, please let me know.

Best regards,
Dan
Attachments
SampleEmail.zip
(3.02 KiB) Downloaded 270 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”