Thursday, April 7, 2016

Script Editor Web Part - JavaScript example of button to launch modal dialog

<div>Engagements</div><br/>
<input onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: '/Lists/ListName/NewForm.aspx', title: 'New List Name'}); return false;" id=newListNameBtn type="button" value="New List Name"></input>

No comments:

Post a Comment