Archive: how to make a field is required


how to make a field is required
Hello

I wanted to know how can I make the next button is disabled
until the user enters all the data, in my case I have 3 fields in a ini file


i could be wrong, but i think you can only achieve this using nsDialogs. using OnChange you can check whether any text was entered or if it fits your requirements.

you should find multiple examples in this forum how to enable/disable the next button.


I wanted to know how can I make the next button is disabled
until the user enters all the data, in my case I have 3 fields in a ini file
You can use a "leave" function to do this. If all three fields have not been filled in then using the Abort command in the "leave" function will stop the user from moving on to the next page.

NSIS comes with an example script that may help you. Compile and run the Examples\InstallOptions\test.nsi script and make sure there is no tick against "Install support for X", "Install support for Y" and "Install support for Z" then you will find that clicking the "Install" button does NOT let you move to the next page.

The Users Manual has more information about this: http://nsis.sourceforge.net/Docs/Chapter4.html#4.5.3