sharepoint-forms-ext
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
SPBusinessDatafields. - 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?');
})
