Use jslog() to confirm Variable Values and Script Execution
- Open the Lab 2.3 Client Script Debugging Client Script
- Use the jslog() rate in strategic places to debug your script. If you require assistance, you can use this script as an example of how to include jslog() messages in your script
function onChange(control, oldValue, newValue, isLoading, isTemplate){ if(isLoading || newValue === ''){ return; } //Document the current value of State, if New, use a decoration var incState = g_form.getValue('incident'); jslog("<your_initials> - the value of incState is: " + incState); if(incState ==1){ jslog("<your_initials> LINE 11 EXECUTED!"); g_form.addDecoration('state', 'icon-edit', 'Gathering initial details'); g_form.flash('state', "teal", -4); } }
- Select Update