1

I have taken two html buttons by just adding some html code into the "edit source" option of a list and I want it to be like when I am clicking it,it should approve and reject all the items in the list. enter image description here

i want to do it using javascript if possible. What do I need to do?

  • Have you taken HTML button in a list or is it a dataview, listview or some jqgrid showing list items. – Niranjan Kulkarni Jun 19 '15 at 6:25
  • I have directly edited the Edit source option and given simple code to add html button. – KumarV Jun 19 '15 at 8:17
1

You can do this with javascript, here is some finished example for your problem: http://spjsblog.com/2012/01/12/approve-multiple-documents-or-list-items-in-one-operation-with-client-side-code/

Or a more advanced solution with a button in the ribbon: http://ranaictiu-technicalblog.blogspot.ch/2011/05/sharepoint-2010-approvereject-multiple.html

| improve this answer | |
  • I want it on clicking a custom html button, is it possible? – KumarV Jun 20 '15 at 8:11

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.