Reusable UI Scripts in ServiceNow | Share the Wealth

  Рет қаралды 1,652

GlideFast Consulting

GlideFast Consulting

Күн бұрын

Пікірлер: 3
@yarikgoncharuk282
@yarikgoncharuk282 2 жыл бұрын
Nice! Thank you
@richj3907
@richj3907 2 жыл бұрын
Hi good video, having watched, you mention about sharing some of the script code, are you able to send me these? would be great to view and write code more efficiently so seems a good starting place. Have tried the FormService but the others are interlinked. thank rich
@wanna_know_something7888
@wanna_know_something7888 Жыл бұрын
var FormService = (function () { return { hideField: hideField, showField: showField }; function hideField (fieldName, clearValue) { g_form.setMandatory(fieldName, false); g_form.setDisplay (fieldName, false); if (toBoolean(clearValue)) { g_form.clearValue(fieldName); } function showField (fieldName, mandatory, readonly, value) g_form.setDisplay (fieldName, true); g_form.setMandatory(fieldName, toBoolean(mandatory)); g_form.setReadOnly(fieldName, toBoolean (readonly)); if (!isNil(value)) { g_form.setValue(fieldName, value); } function toBoolean (arg) ( if (!isNil(arg)) { if (isBoolean(arg)) { return arg; } else if (isString(arg)) { return arg === 'true' || arg === '1'; } else if (isInteger (arg)) { return arg === 1; } return false; } function isBoolean (arg) { return typeof arg 'boolean"; } function isInteger(arg) { return typeof arg === 'number' && isFinite(arg) && Math.floor(arg) === arg; } function isNil(arg) { return arg == null; } function isString(arg) { return typeof arg === 'string'; } })();
Widget Fun in ServiceNow | Share the Wealth
43:53
GlideFast Consulting
Рет қаралды 2,5 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 102 МЛН
когда не обедаешь в школе // EVA mash
00:51
EVA mash
Рет қаралды 4,3 МЛН
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 9 МЛН
Share The Wealth: Introduction to Vault
32:33
GlideFast Consulting
Рет қаралды 133
Learn GitLab in 3 Hours | GitLab Complete Tutorial For Beginners
3:26:43
ServiceNow GlideAjax | Asynchronous GlideAjax and Script Include
16:01
ServiceNow®️ service portal #3 - Widgets basics
11:32
iTSM Group
Рет қаралды 6 М.
Azure Data Factory Beginner to Pro Tutorial [Full Course]
2:50:26
Pragmatic Works
Рет қаралды 340 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 102 МЛН