Showing posts with label content editor. Show all posts
Showing posts with label content editor. Show all posts

Friday, February 12, 2016

12 Feb

How to Hide a web part for selected users in Sharepoint

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...
12 Feb

How to get list in Content Editor Web Part using JavaScript Client Side Object Model

<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);  ...
12 Feb

What is the PreSaveAction

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...