sharepoint-forms-ext

A little library to work with SharePoint NewForm and EditForm.


Keywords
sharepoint, newform, editform, SPBusinessData
License
MIT
Install
bower install sharepoint-forms-ext

Documentation

sharepoint-forms-ext

Build Status

A little library to work with SharePoint NewForm and EditForm. Only tested with SP 2013.
It will look for the correct rows in a .ms-formtable table.

Features

  • Set field values:
    • PeoplePicker
    • Checkbox
    • Select
    • SPBusinessData
    • Taxonomy
  • Get field values.
  • Listen for change on SPBusinessData fields.
  • More (Look at the source, it's pretty simple).

TODO & Bugs

Usage

var form = new SPFormsExt();
form.setField('FIELD_NAME', 'Wernstrom!');

or with RequireJS:

require(['sp-forms-ext'], function(SPFormsExt) {
	var form = new SPFormsExt();
	form.setField('FIELD_NAME', 'Why not Zoidberg?');
})