Class represents list item field.
Article: Getting and setting SharePoint form field values
titleText(value) | Gets or sets title text. Ex.: fd.field('Title').titleText('Name'); |
titleRequired(value) | Adds or removes ‘required’ asterisk to/from title. Ex.: fd.field('Title').titleRequired(true); |
value() | Gets or sets field value. Ex.: if (fd.field('WorkingPhone').value() .length < 4) { alert('Please, enter correct phone number'); } |
readonly(value) | Gets or sets disabled property of the control. Ex.: fd.field('Title').readonly(true); |
change(handler) | Binds an event handler to the value change event. Ex.: fd.field('WorkingPhone').change(function(){ if (fd.field('WorkingPhone').value() .length < 4) { alert('Please, enter correct phone number'); } }); |
control()._el() | Returns jquery-object representing html-element of the control. Ex.: fd.field('Title').control()._el().find('input').val('Default title'); |