How to Make SharePoint List Column (Form Field) Read Only?

How to make a column read only in SharePoint 2010? Well, there are many ways. Here are some: Make column read only in SharePoint list programmatically use jQuery to make SharePoint field read only Using SharePoint Designer to set field read only in list forms. Programmatically Set SharePoint list field to Read-Only…

Read more

Get Query String and Set List Form Field Value using jQuery

Years back, I used JavaScript for the similar requirement in SharePoint 2007: Get the value from URL Query String and populate the value of SharePoint list form field: How to Get the Query String from URL and Set SharePoint List Form field value? Now in SharePoint 2010, lets use jQuery to get…

Read more

Change “Save” or “OK” Button Text on SharePoint List Forms

Wouldn’t it be more meaningful to rename SharePoint List NewForm.aspx “Save” or “OK” button text to “Submit” in Request Tracking Lists? Yes! Sure, It’s possible to change the “Save” button’s text to something else which gives more meaning in the context. Using jQuery to Rename “Save” button Text: Place the below jQuery…

Read more

Hide List Form Field in SharePoint using jQuery

My earlier post listed various methods such as C# Object model, PowerShell, JavaScript methods to hide columns in SharePoint list forms: Hide Columns in SharePoint List NewForm, EditForm and DispForms Now, let’s hide fields in SharePoint list form pages using jQuery. Let’s say you have a field called “Parent Project” and want…

Read more

Disable “Save” Button Until User Selects “I Agree”

Requirement is: Don’t allow the end user to submit a record until they Agree with the terms and conditions by selecting “I Agree”. So, we’ve to disable “Save” button until the “I Agree” check box is checked! Here is the jQuery script to achieve the same. Just place this code in your…

Read more

Show or Hide SharePoint List Form Fields based on Another Field’s Value using jQuery

What: Show or Hide a SharePoint list form field based on another field’s value. How: Use Query script to show/hide the dependent field from the list form based on the current field’s value. jQuery to Show or Hide Fields based on another Field Value: and the output: No value selected Reason filed…

Read more

Hide Columns in SharePoint List NewForm, EditForm and DispForms

Had a requirement to hide a specific column “Parent Project” in a SharePoint list “Project Metrics”, Since this field was being updated by an internal workflow, it must not be visible in NewForm or in EditForm. So to protect a particular column from edits, decided to hide it from New & Display…

Read more

Redirect Users to Thank You page from NewForm.aspx after form submission

Requirement: Redirect to a page after adding a new item to a list. Here is my requirement: I have a SharePoint request tracking system. When users create a new entry, what I want is to redirect them to “Thank you! We have received your request. We will get back to you on…

Read more

Cascading Drop down In SharePoint Lists using jQuery

Out-of-the-box SharePoint doesn’t provide a way to cascade drop downs in list forms. Luckily, jQuery provides a way to implement cascading drop downs in SharePoint list forms. Here is the step by step implementation guide: We need to have two more lists to implement this. Let’s say: List 1: Parent list, say:…

Read more

Trick to Edit SharePoint List Forms to Add web part (NewForm.Aspx, EditForm.aspx, AllItems.aspx, etc.) in browser

By default, SharePoint doesn’t allow us to edit the List forms in browser. See the Edit Page from Site action is greyed out! However, Its possible to edit SharePoint list form pages! Here is the trick to edit SharePoint List Forms (like DispForm.aspx, NewForm.aspx, EditForm.aspx) in browser. Just append: &toolpaneview=2 in the…

Read more