0
I Use This!
Activity Not Available

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();

Tags

sharepoint tweak modification javascript forms

In a Nutshell, formworks...

 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

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free tool to discover if there are open source vulnerabilities in your code
  • ...
    compare projects before you chose one to use
  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    by exploring contributors within projects, you can view details on every commit they have made to that project

 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
Review this Project!
Sample ohloh analysis