Questions
var today_date = new Date(); var today_date_str = formatDate(today_date, g_user_date_format); alert(today_date_str); Output:
View Questionvar 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 QuestionUse 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<!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 Questionaction.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 Question1. 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 Questionfunction 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 Questionvar removeAttach = new GlideSysAttachment(); removeAttach.deleteAll(current);
View Question