Page 1 of 1

Onclick action executed without clicking

Posted: 17 Jun 2016
by gianni972
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

Re: Onclick action executed without clicking

Posted: 17 Jun 2016
by Dmitry Kozlov
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.