• Rameshkumar
    December 11, 2015 at 11:40 am #1037

    Team,

    Could you please let me know, how do I achieve the below scenario ?

    • On Submit, would like to validate the fields first, if function returns true, then I need to call the other function to hide the current pane.
    • I have placed my function  like this in On Click event of the button (@cciValidate();${Stack2}.setCurrentPane(1);)

    The above function calling is not working as expected. So I am using to call the second function in the boundary trigger event as a work around. Could you please tell me, how do I use multiple function in On Click event ? Let me know, if you need more information.

     

     

    SPARK Support
    December 12, 2015 at 7:33 am #1039

    Ramesh:

     

    In your On Click function simply add the following (here I am assuming that you have a variable res, set to the result of your edits):

    if (!res)
    page.ui.get(“Stack2”).setCurrentPane(2);
    return res;

    This should do what you want.

    John

     

     

     

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search