JQuery:
We ll do get div id or class for particular webpart
display:none
SharePoint Feature:
Edit page
Edit webpart properties in current page
web part's properties panel expand the Advanced section, scroll to the bottom and select the Target audience to hide the web part.
Save your changes and...
Showing posts with label content editor. Show all posts
Showing posts with label content editor. Show all posts
Friday, February 12, 2016
12
Feb
<button onclick='GetFieldDetails()'>Get Details</button>
<script type="text/javascript">
function GetFieldDetails()
{
var listname = "Employee";
var context = SP.ClientContext.get_current();
this.web = context.get_web();
context.load(this.web);
this.list = web.get_lists().getByTitle(listname);
...
We have added a PreSaveAction JavaScript function to the page.
Return a True or False to allow the save to continue.
Example:
<script type="text/javascript">
function PreSaveAction() {
// pre save action alert message
alert('form has been submitted!');
return true; // return true...