I am attempting to validate some data entered into a custom password form.
I have three edit boxes pointed to properties called DBUID, DBPWD and DBPWDCONFIRM. I don't know if this matters, but I have the Indirect property set to False for all three fields.
In the Behavior window for the form, on the "Next" button, I have the following Events, Arguments, Conditions:
DoAction, ValidatePassword, 1
NewDialog, PPDS_UIC, PASSWORDOK = "0"
The PASSWORDOK property is defined with a default value of "-1".
The ValidatePassword CA is a Type 38 CA and contains the following code:
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
IS 10.5 DoAction Validation not working(?)
Started by
WJPOConnor
, Jul 29 2005 18:37
2 replies to this topic
Posted 29 July 2005 - 18:37
CODE |
Dim RetVal RetVal = 0 if Session.Property("DBUID") = "" then RetVal = -1 end if if Session.Property("DBPWD") = "" then RetVal = -1 end if if Session.Property("DBPWDCONFIRM") = "" then RetVal = -1 end if if Session.Property("DBPWD") <> Session.Property("DBPWDCONFIRM") then RetVal = -1 end if if RetVal = -1 then Session.Property("PASSWORDOK") = -1 else Session.Property("PASSWORDOK") = 0 end if |
What happens is that when the "Next" button is pressed, the installation goes to the SetupCompleteError form.
Does anyone have any ideas as to what I am doing wrong here?
Edited by WJPOConnor, 29 July 2005 - 18:38.
Posted 29 July 2005 - 19:00
I did figure out one error. I switched the CA to Synchronous (Ignore Exit Code). While I no longer automatically go to the error form, I can't press the next button at all. Hmmm. More problems.
Posted 29 July 2005 - 19:15
Okay, ignore me. Once you get the code bugs worked out, things start working.