Is there any way how to insert "Version History" button from Ribbon to page or displayform.aspx in SP List?

Thanks a lot. Dominik

1 Answer 1


You can add this code:

`<a href="#" onclick="SP.UI.ModalDialog.showModalDialog( {url: '/_layouts/Versions.aspx?list={list guid}&ID={item id}&IsDlg=1'} ); return false;">version history</a>`

Your Answer

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

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