Search
BaseForm.getControlValue Method
See Also
 






Gets the value of the control with the specified id.

Namespace: MindFusion.Scheduling
File: BaseForm.js

 Syntax

JavaScript  Copy Code

function getControlValue (controlId)

 Parameters

controlId

String. The id of the control to check.

 Return Value

Object. The value of the control.

 Example

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");
  .....................
}

 See Also