Skip to content
⌘ NSIS Forum Archive

Call a function on Next button click of a page

8 posts

RanadheerMachi#edited

Call a function on Next button click of a page

Hi
i have a custom page
Page custom SelectDatabaseDialog ValidateDatabaseDialog ""

i need to call a function on Next button click of the page.
i should use the function ValidateDatabaseDialog for that purpose.

any ways to do that?
jpderuiter#
Create a function ValidateDatabaseDialog, that's all:
Function ValidateDatabaseDialog
; Validation code
FunctionEnd
RanadheerMachi#
hi thanks for reply
sorry i was wrong
my actual question was
i have a custom page
Page custom SelectDatabaseDialog ValidateDatabaseDialog ""

i need to call a function on Next button click of the page.
i should NOT use the function ValidateDatabaseDialog for that purpose.

i need to use ValidateDatabaseDialog function only for validation not for Next Button functionality because if i use the same function for Validation/Nextbutton functionality there are many problems with Tab Button on key board


any ways to do that?
jpderuiter#
OK, then why not simply use another functionname, like
Page custom SelectDatabaseDialog SelectDatabaseDialogLeave ""
RanadheerMachi#
u mean SelectDatabaseDialogLeave function for Data validation of the page , then how can i call some other function on Next button click?
sorry if i am immature ,please elaborate
i dont know way to use different functions for Page data validation and Next Button functionality
jpderuiter#
Maybe you better summarize what you want to achieve, because I don't understand what the problem is...
RanadheerMachi#
I have 2 radio bottons on custom page
on change of state of the radio buttons i have to enable disable some other elements. i used NOTIFY flag and
i have done so using the function ValidateDatabaseDialog.

Page custom SelectDatabaseDialog ValidateDatabaseDialog ""

now i want to use another functon which is supposed to be inveoked on Next button click of the Custom Page
RanadheerMachi#
either u can tell me how to avoid tab shifting (control/focus shifting using the Tab button on key board) even after setting the Radio button Notify flag