This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How do I disable a "next" button until input is valid & reenable as the user types?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2010
12:42 PM
How do I disable a "next" button until input is valid & reenable as the user types?
I've got a SQL Login dialog in my Basic MSI project on which I want the next button disabled until all text boxes are filled in. I've been able to accomplish this by adding [PROP] <> "" conditions to the next buttons enable properties. However, the properties do not get updated until the text box loses focus. For example, if the user completes the textboxes, ending with the catalog text box, the next button is not immediately enabled as he/she types. The user actually has to click another control (text box) before the next button becomes enabled. Is there a way to update the property as he/she types?
Note: I've tried adding [PROP] [PROP] 1 events to the textboxes and the behavior remains the same.
Note: I've tried adding [PROP] [PROP] 1 events to the textboxes and the behavior remains the same.
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2010
10:19 PM
Any thoughts?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2010
10:31 PM
Hi Joseph,
This is a limitation of Windows Installer. I do not believe there is a way to workaround this.
Thanks,
Alpesh
This is a limitation of Windows Installer. I do not believe there is a way to workaround this.
Thanks,
Alpesh
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2010
11:12 PM
Ok, is there any way to capture the user's click of the disabled next button simply for the purpose of allowing the text box to fill it's property (and therefore enable the next button.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2010
11:29 AM
Or is there perhaps a way to put a timer on the dialog to refresh the text boxes every second or so?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2010
06:12 PM
No, there is not. Limitation of MSI. The closest you can get is to leave the next button enabled and do your validation as part of a ControlEvent on the next button. You can either pop up a modal dialog using SpawnDialog or transition to a go-nowhere dialog using NewDialog with a back button to return the user to correcting the input.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 21, 2010
10:30 AM
Thanks for the reply Christopher!
I was starting to head in a similar direction. I wrote a installscript to check the value of the variables tied to the text boxes and popup a message box if they were invalid. This was fired by a DoAction event on the next button. My problem is that the message box does not stop the button from loading the next dialog.
I'll look into the ControlEvent approach you mentioned to get rid of that problem.
I was starting to head in a similar direction. I wrote a installscript to check the value of the variables tied to the text boxes and popup a message box if they were invalid. This was fired by a DoAction event on the next button. My problem is that the message box does not stop the button from loading the next dialog.
I'll look into the ControlEvent approach you mentioned to get rid of that problem.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)