Question 1mediummultiple choice
Read the full User Interface Development explanation →SNOW-CAD User Interface Development • Complete Question Bank
Complete SNOW-CAD User Interface Development question bank — all 0 questions with answers and detailed explanations.
Refer to the exhibit.
Server script in a Service Portal widget:
(function() {
var gr = new GlideRecord('incident');
gr.addQuery('active', true);
gr.query();
var count = 0;
while (gr.next()) {
count++;
}
data.count = count;
})();Refer to the exhibit.
Client script on a form:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue == '') {
return;
}
g_form.setValue('short_description', 'Category changed to ' + newValue);
}Refer to the exhibit.
```javascript
// Client Script (onChange)
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading) return;
g_form.setValue('short_description', 'Updated');
}
```Refer to the exhibit. ``` Error: GlideRecord is not defined Stack: onLoad() at client_script.js:1 ```
Refer to the exhibit.
```javascript
// UI Policy Condition Script
function onCondition() {
return gs.getProperty('my.property') == 'true';
}
```function onChange(control, oldValue, newValue, isLoading, isTemplate) {\n if (isLoading) return;\n if (newValue == '1') {\n g_form.hideField('field2');\n }\n}