Onclick action executed without clicking


Posted by gianni972 - Jun 17 ’16 at 02:27


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.


  • Dmitry Kozlov
    Dmitry Kozlov
    Member for: 8 years 3 months 29 days
    #1 by Dmitry Kozlov Jun 17 ’16 at 02:42

    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.

Displaying 1 to 1 of 1 messages