CFEC is a global registry introduced in CT 18.1 to help you access the list of form specific events through constants.
Use CFEC to call a form event as shown in the following code:
Code Block | ||
---|---|---|
| ||
this.fm.registerHandler(CFEC.CLICK, '<FORM_BUTTON/HYPERLINK_ID>', function(fm, event,fieldName) |
...
{ |
...
//Developer to perform operations here. |
...
}); |
OR
You can also use the form event name without using the constant. Sample code is as follows:
Code Block | ||
---|---|---|
| ||
this.fm.registerHandler('cbxclick', '<FORM_BUTTON/HYPERLINK_ID>', function(fm, event,fieldName) |
...
{ //Developer to perform operations here. |
...
}); |