Expert

Questions

0 Answers9

var today_date = new Date(); var today_date_str = formatDate(today_date, g_user_date_format);  alert(today_date_str); Output:

View Question
0 Votes 2.76K views Asked question ServiceNow
0 Answers9

var addTag = new GlideRecord('label_entry'); addTag.initialize(); addTag.setValue('label', grTag.getUniqueValue()); addTag.setValue('table', current.getTableName()); addTag.setValue('table_key', current.getUniqueValue()); addTag.setValue('title', "Tag title"); addTag.insert();

View Question
0 Votes 2.58K views Edited question ServiceNow
0 Answers9

Use Annotations to add link on the form. Step 1. Right click on form and click on form layout. Step 2. Create annotation using below image. It'll show like this

View Question
0 Votes 2.93K views Asked question ServiceNow
0 Answers9

<!DOCTYPE html> <html> <body>  <h1>Welcome to Working Code</h1> <h2>The confirm() Method</h2>  <p>Click the button to display a confirm box.</p>  <button onclick="workingCode()">Try it</button>  <script> function workingCode() {   confirm("Thankyou!"); } </script>  </body>...

View Question
0 Votes 2.32K views Asked question ServiceNow
0 Answers9

action.setRedirectURL(url);- if you want to redirect a user to a Specific URL or page use this syntax to define the redirect link: action.setRedirectURL('https://www.workingcode.in/developer-forum/');

View Question
0 Votes 3.62K views Asked question ServiceNow
0 Answers9

User javascript:getMyAssignments() in reference qualifer.

View Question
0 Votes 2.15K views Asked question ServiceNow
0 Answers9

1. Right click on the field     2. Go to Configure Styles.     3. Click on "New"     4. Select table where the field belongs.     5. Select the "Color" field in the Field...

View Question
0 Votes 3.01K views Asked question ServiceNow
0 Answers9

Use this URL and change the popup view in ServiceNow

View Question
0 Votes 2.43K views Asked question ServiceNow
0 Answers9

function onChange(control, oldValue, newValue, isLoading) {       if (isLoading || newValue == '') {       return;       }       var regexNumber = /^[+]?\d*$/;       if(!regexNumber.test(newValue)){       alert('Please enter numeric value');       g_form.setValue('num','');       }     }

View Question
0 Votes 2.59K views Asked question ServiceNow
0 Answers9

var removeAttach = new GlideSysAttachment();     removeAttach.deleteAll(current);

View Question
0 Votes 2.72K views Asked question ServiceNow
Load more questions
Scroll to top