Onclick action executed without clicking

rss

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

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

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 18 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