Click save button programmatically

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
SPTech
Posts: 10
Joined: Wed May 27, 2015

07 Sep 2015

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 ?

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

07 Sep 2015

Please use:

Code: Select all

fd.save().click();

SPTech
Posts: 10
Joined: Wed May 27, 2015

07 Sep 2015

Great, thanks.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests