Onclick action executed without clicking
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
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
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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.
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 5 guests