Hi All, I'm starting a new series of short and interesting articles. This is the first one in the series. I hope you will like it.
Have you ever faced it when you try to assign a field to a variable and it results in an empty value?
var field = cur...
Length
The length property returns the length of a string.
var txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var sln = txt.length;
IndexOf
The indexOf() method returns the index of (the position of) the first occurrence of a specified text in a string
var str ...
1. Tostring
The toString() method is what it sounds, returns the number as a string. However, if you provide a parameter, such as 2, 8, or 16 it will return binary, octal or hexadecimal value respectively.
var num = 123;
num.toString();
// "123"
(100...
Field-Based APIs
Hide/Display variable : g_form.setDisplay(<fld>,true/false);
Disable a field : g_form.setDisable(<fld>,true/false);
Field ReadOnly : g_form.setReadOnly(<fld>,true/false);
Clear Value fro...
Installation procedure.
1. Install VS code extension – [ sn-scriptsync].
2. Create a new folder with the name “sn-scriptsync" under Documents directory.
3. Install “ServiceNow Utils” – browser extension in Chrome or Firefox browser...
@avinashdubey103
use requester or opened by field instead created by. created by is string filed in who will receive .
If my answer helped you, please mark my answer as correct.
@Charan_56
For this, Use onSubmit client script to check the variable true or false. if true, Check whether attachments with DOM manuplation. if none attached return false
Please mark my answer as correct and helpful if it solves your issue
Th...
@snow_beginner
You can't put URL in browser confirm. Instead you can use UI page for this. Create a UI page and call via GlideModal.
Please mark my answer as correct and helpful if it solves your issue
Thanks,
Phanindra.