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.

2
  • Why you fire click event? SharePoint will fire after execute PreSave function. Commented Dec 26, 2016 at 12:02
  • Please read my question I modify. Commented Dec 26, 2016 at 12:36

1 Answer 1

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" );

1
  • Great.. Yr welcome. Commented Dec 26, 2016 at 13:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.