Gets the value of the control with the specified id.
Namespace: MindFusion.Scheduling
File: BaseForm.js
JavaScript Copy Code |
---|
function getControlValue (controlId) |
String. The id of the control to check.
Object. The value of the control.
The following code uses the ButtonClick event handler of a save button to update the subject of an item with the control value of a control with an id "subject". The form (this) is represented by a class that extends BaseForm:
JavaScript Copy Code |
---|
onSaveButtonClick(e) { // update the item with the form data this.item.subject = this.getControlValue("subject"); ..................... } |