Archive: Enable/Disable Input text boxes based on Changes to the Radio Button


Enable/Disable Input text boxes based on Changes to the Radio Button
Hi,

I would like to enquire on an issue pertaining to the Custom page utilization of NSIS.

Currently, I have a custom page with Two Radio buttons (Grouped) and Two Input Text boxes.

I am trying to create a condition where;

1. Disable an Input text box based on selection of a radio button (the other input box remains enabled)
2. Disable the other Input text box based on selection of the second radio button (the earlier input text box is enabled now)

At the moment, I am having trouble implementing this method. I would sincerely appreciate it if I could receive some guides or examples on how to perform it.

Thanks very much


For a good starting point, have a look at the testnotify.nsi script under ${NSISDIR}\Examples\InstallOptions.

It uses a checkbox to disable a DirRequest box, but the same technique could be applied to a radio button and text box.


Thanks man very much.

I looked through the example of the tesnotify.nsi script and it was helpful in application into the scripts i am working on