If you want to use the SharePoint 2010 client object model you can use the code below: ExecuteOrDelayUntilScriptLoaded(getWebUserData, “sp.js“); var context = null; var web = null; var currentUser = null; function getWebUserData() { context...
If you ever add HTML to a SharePoint modal dialog box you might notice that adding a left-margin is also necessary. Remember, the HTML option uses DOM not a string. Style margin Property Get the code Adding SP.UI.ModalDialog.showModalDialog...
While customizing an “add new item” form, you might find yourself needing to manipulate form elements via jQuery. However, before you can do that you must and an #id or .class to the elements in question. I will be adding an #id in this demonstration...
Documentation for $().SPServices.SPCascadeDropdowns In my opinion, the tricky part to this is the third list “CascadeExample”. It was unclear to me after reading the documentation on the SPServices website that the two columns “Country”...
Get the code / Look for the highlight area InfoPath 2010 is a great tool. However, while building forms in InfoPath it’s only a matter of time when you have a user requirment that InfoPath alone simply will not do. In that case you might have a...
Let’s say you wanted to hide/show a specific textbox only if a specific checkbox has been selected. You can use jQuery to do this via SharePoint Designer 2010 How can I validate a textbox using the PreSaveAction() How do I: Create a simple form...
The answer might be simple. The first time a column is created and you title it “Column1″ the database records that. If you (or someone else) later changes the column title to “Column2″ your application will break. Why? Because...
This was done using a SharePoint Online site. There is an important piece of JavaScript code that allows you to re-direct your page once the “Save” button is click: <input type=”button” value=”Save” class=”btnStyle”...
The following video demonstrates how to add streaming video to a SharePoint Online private site collection. Please note: this will not work on a SharePoint Online public website Read More...
Building forms using SharePoint Designer can be a bit tricky at times. What if you wanted to a text box to show only if a certain radio button value is selected? This video will show you how I acheived this using jQuery. Get the code This post might also...
This video will demonstrate how to populate a asp.net drop down list control with SharePoint list column values. I’ve created a visual web part in Visual Studio 2010 and used the sever object model to demonstrate this. However...
This video will demonstrate how to populate an HTML drop down list control with SharePoint list column values. I’ve created a visual web part in Visual Studio 2010 and used the client object model to demonstrate this. Why would...
If you add custom code to InfoPath 2010 form template you will need to publish the form as an “administrator-approved” form template. Publishing an administrator-approved template is not an intuitive process (in my humble opinion). So, I create...