Click save button programmatically

rss

Posted by SPTech - Sep 7 ’15 at 04:31

Hello,

I'm using SP.ClientContext.executeQueryAsync to get data from other list and according to the result I would like to allow user to save or not save the edit form. Because this function runs asynchronously I can not use the code in fd.onsubmit(). I use another button to use executeQueryAsync function and in that code I would like to trigger save button programmatically. Is it possible ?

  • rostislav
    rostislav
    Moderator
    Member for: 6 years 4 months 15 days
    #1 by rostislav Sep 7 ’15 at 04:54

    Please use:

    fd.save().click();
    
  • SPTech
    Member
    Member for: 6 years 3 months 25 days
    #2 by SPTech Sep 7 ’15 at 05:31

    [#1]: Great, thanks.

Displaying 1 to 2 of 2 messages