testarosa
Posts: 15
Joined: Tue Jan 18, 2011 6:50 pm

custom dialog question

I'm implementing the custom action SendCollectedData to my server.

Please see attached custom dialog. I need "next" to fail if First Name/Last Name/Email fields are empty and there is no data entered in them. I created a user defined property to try to handle it that way, but that way is not working. I can't find what event or custom action to add to those fields to make them fail if no data is entered in the user guide.

Can you help?

Thanks!
Attachments
registration.jpg
registration.jpg (97.82 KiB) Viewed 2650 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: custom dialog question

Hello,
I need "next" to fail if First Name/Last Name/Email fields are empty and there is no data entered in them.
To validate if the First Name/Last Name/Email fields are empty you can add a "SpawnDialog" published event on the "Next" button with the argument set to <NewDialog> and its condition set to something like:

Code: Select all

FIRST_NAME="" OR LAST_NAME="" OR EMAIL=""
where FIRST_NAME, LAST_NAME and EMAIL are the property names of the First Name, Last Name and Email text fields.
To reveal and edit the spawned dialog simply expand your user information dialog from the dialog sequence tree.

Another way is described in this how to from our user guide.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”