Activity Not Available
0
I Use This!

Project Summary

HOW TO

- Add "ToolPaneView=2" to the end of your form URL. E.g: "http://sharepoint/site/list/NewForm.aspx?ToolPaneView=2" 2 - Add a Content Editor Web Part (CEWP) to the bottom of the form.
3 - Open the "Source editor..." web part and paste this code into it.
4 - Insert your modifications you want to make to the form in the "runMods()" function.

COMMAND TREE

toolbar'ITEM'
.hide()
.show()
<TD DOM>
formLABEL'
.row
.hide()
.show()
<TR DOM>
.titleCell
.htmlRewrite(html)
.htmlPrepend(html)
.htmlAppend(html)
.rename(newName)
<TD DOM>
.ctrlCell
.htmlRewrite(html)
.htmlPrepend(html)
.htmlAppend(html)
.remove(textToRemove)
<TD DOM>
.ctrl
.enable()
.disable()
.hide()
.show()
.clear()
.insEvent(event, function)
<INPUT/TEXTAREA/SELECT DOM>

EXAMPLES

TASK - To move the 'Sub-title' text box next to the 'Title' textbox:
SOLN - form'Title'.htmlAppend(form'Sub-title'.ctrlCell.innerHTML);
TASK - Hide the 'Workspace' row
SOLN - form'Workspace'.row.hide();
TASK - Add form validation at user input.
SOLN - rowNumber'.ctrl.insEvent('onBlur','isPhone(this.value)')
function isPhone(val) { if (!val.match(/\d{3}-\d{3}-\d{4}/)) { alert("Please enter a phone number:\nNNN-NNN-NNNN"); } }
TASK - Make a control read-only on the EditForm.aspx
SOLN - rowAuthority'.ctrl.disable();

Share

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
 
Click to add your rating
   Spinner f6ecff617ec2ba7f559e6f535cad9b70a3f91120737535dab4d4548a6c83576c
 
Review this Project!
Sample ohloh analysis 84f338d459254c9abef212196db5fed5d219bf28c1fbaba6706f7f25d9e5ce29