Onclick action executed without clicking

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
gianni972
Posts: 7
Joined: Wed May 18, 2016

17 Jun 2016

Hello,

I created a save button that is updating a "step" field.

I don t have any other code on this page. Unfortunately the onclick action is executed all the time even if i save with the sharepoint button. If i remove the action fd.field('Step').value('Review') from the button then the value is not updated, so its really coming from the button.

Do you know where the problem can be located, let me know how i can explain you or give you more info.

Gianni

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

17 Jun 2016

Hi Gianni,

SharePoint emulates click event on the first Save button on the page when a user clicks the Save button in the ribbon. So, you just need to swap default Save button and your custom one.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests