...
Code Block | ||
---|---|---|
| ||
this.fm.registerHandler("valuechange"CWEC.VALUE_CHANGE, "NAME_ID", function(fm, event, fieldName, value) { fm.model.setValue('NAME_ID', value.toUpperCase()); }); // Here, valuechangeCWEC.VALUE_CHANGE is the event. // NAME_ID is the form item ID. // value.toUpperCase() – This is a function that changes the text to uppercase. |
...
By default framework takes 1000 milli seconds as the idle time before triggering the valuechange CWEC.VALUE_CHANGE event. If you want to change the idle time, you can use the following code in the form's listener JS file. However, note that following code will globally set the idle time at the application level.
...