Currently, Canvas raises events for input fields only after the user tabs out of the fields. As part of 18.1release1 release, Canvas provides you the option to capture and raise events when the user is changing or entering the value in the field.
...
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.
...