1

In List form, I added one new button as save and send. When user click on this button, I fire this event to save the list item.

$('input['name*="IOsaveItem"]'.click()

But it save two times item.

This issue in only IE.

  • Why you fire click event? SharePoint will fire after execute PreSave function. – Viraj Gorajia Dec 26 '16 at 12:02
  • Please read my question I modify. – Admin Dec 26 '16 at 12:36
2

There are 2 Save button in form. One button is on top that is not visible. Your script is firing 2 Save button click event.

Try with below syntax:

$('input[id*="IOSaveItem"][id*="BarTbl_"]').trigger( "click" );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.