resetFirstChange();
The resetFirstChange method of the Form class resets the first change status of the referenced form and all TextBox, JadeRichText, and JadeEditMask controls on the form.
After calling the resetFirstChange method, the next change made to a control on the form listed in the following table again generates a firstChange event for the form.
Control Class | Change |
---|---|
TextBox | Change to the value of the text property |
JadeEditMask | Change to the value of the text property |
JadeRichText | After a user change but before the change event (same rules as those that apply to the JadeRichText class firstChange event) |
CheckBox | Change to the value of the value property |
OptionButton | Change to the value of the value property |
ComboBox | Different entry selected (this does not apply to the text box portion of the combo box unless the text property change causes a different list entry to be selected) |
ListBox | Different list entry selected |
Table | Cell updated by the Control class automaticCellControl property, including default inputType property entry of CheckBox, TextBox, JadeEditMask, and ComboBox controls (but not when a different row or column is selected) |
Similarly, the next change made on each TextBox, JadeRichText, and JadeEditMask control on the form again generates a firstChange event on that control.
You could use the resetFirstChange method, for example, so that when a user clicks an update button and the logic associated with that button performs the required updating, the form remains active. Calling resetFirstChange will reset the firstChange status of the form and its controls to the same state as when the form was loaded.
The next change made to a control on the form and to any TextBox, JadeRichText, and JadeEditMask controls on that form again generates a firstChange event and therefore signals that a new change has been made to the data. (To accomplish this for TextBox, JadeRichText, and JadeEditMask controls without calling the resetFirstChange method, you must use logic to reset the text of all of those controls.)
The resetFirstChange method for the TextBox, JadeEditMask, JadeRichText, and Form classes is not available from a Web browser.