quote:
Originally posted by Felu
code:
function OnWindowIdEvent_CtrlClicked(PlusWnd, CtrlId) {
if(CtrlId == "BtnSubmit") { // Thats Point #2 to check whether its the submit button clicked. Replace BtnSubmit with whatever ID you've given to the submit button
var t1 = PlusWnd.GetControlText("text1"); //Point #3
var t2 = PlusWnd.GetControlText("text2");
var t3 = PlusWnd.GetControlText("text3");
//here goes the rest of the code....
}
You forgot to close your if()