|
Asked a question
how to get the current date in client script ServiceNow?var today_date = new Date(); var today_date_str = formatDate(today_date, g_user_date_format); alert(today_date_str); Output: |
July 19, 2023 |
2 |
|
Asked a question
How to add Tags in Form using Script ServiceNowvar addTag = new GlideRecord('label_entry'); addTag.initialize(); addTag.setValue('label', grTag.getUniqueValue()); addTag.setValue('table', current.getTableName()); addTag.setValue('table_key', current.getUniqueValue());... |
July 18, 2023 |
2 |
|
Asked a question
How to add a link in the form ServiceNowUse 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 |
July 18, 2023 |
2 |
|
Asked a question
Confirm popup in ServiceNow and JavaScript<!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>... |
July 18, 2023 |
2 |
|
Asked a question
Use of action.setRedirectURL() in ui action ServiceNow?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/'); |
July 18, 2023 |
2 |
|
Asked a question
How to Show logged in user assignment group on Assignment group field in form ServiceNowUser javascript:getMyAssignments() in reference qualifer. |
July 18, 2023 |
2 |
|
Asked a question
How to set a particular color for field in ServiceNow1. 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... |
July 18, 2023 |
2 |
|
Asked a question
How do I configure a pop-up view on a reference field ServiceNow?Use this URL and change the popup view in ServiceNow |
July 18, 2023 |
2 |
|
Asked a question
Regex to allow only numeric data in a single line field Client Script ServiceNowfunction onChange(control, oldValue, newValue, isLoading) { if (isLoading || newValue == '') { return; } var regexNumber = /^[+]?\d*$/; if(!regexNumber.test(newValue)){... |
July 18, 2023 |
2 |
|
Asked a question
How to remove Remove attachments using GlideSysAttachment in ServiceNow?var removeAttach = new GlideSysAttachment(); removeAttach.deleteAll(current); |
July 18, 2023 |
2 |
|
Asked a question
How to check view name using client script in ServiceNow?function onLoad() { //Type appropriate comment here, and begin script below var view = getView(); if (view == 'sp'){ //self service view name is ess so make... |
July 18, 2023 |
2 |
|
Asked a question
How to Impersonating users through script in ServiceNowgs.getSession().impersonate("usernameORsysid") |
July 18, 2023 |
2 |
|
Asked a question
Advance user Criteria to show record Catalog item only to those users who is active trueif (gs.getUser().getRecord().getValue('active') == true) { return true; } else { return false; } |
July 18, 2023 |
2 |
|
Asked a question
How to fetch variables value in workflow or Business rule ServiceNow?Use current.variables.variablename to fetch variables value. |
July 18, 2023 |
2 |
|
Asked a question
How to get entire URL in Client Script ?Use window.parent.location.href; alert(window.parent.location.href); Output: https://www.workingcode.in/question/how-to-get-entire-url-in-client-script/ |
July 18, 2023 |
2 |
|
Asked a question
How to Flush Cache in ServiceNow?Type cache.do in left nav bar and press enter |
July 18, 2023 |
2 |
|
Asked a question
How to get a reference field name in Client Script instead of sys_id ServiceNowg_form.getDisplayBox('fieldname').value |
July 18, 2023 |
2 |
|
Asked a question
Six different HTML headings (,,,,, )<!DOCTYPE html> <html> <body> <h1>This is heading 1 </h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4>... |
July 18, 2023 |
2 |
|
Asked a question
Use of ol and ul elements in HTML<!DOCTYPE html> <html> <body> <h1>The ol and ul elements</h1> <p>The ol element defines an ordered list:</p> <ol> <li>Java</li> <li>PHP</li>... |
July 18, 2023 |
2 |
|
Asked a question
How to add image in HTML page<!DOCTYPE html> <html> <body> <h1>The img element</h1> <img src="workingcode.jpg" alt="Welcome to workingcode.in" width="400" height="400">... |
July 18, 2023 |
2 |