Posts

Show Character Counter for Form Fields in ServiceNow Without Risky DOM Manipulation

Image
 📝 Summary: When entering names or descriptions in fields like Client Scripts , Business Rules , or Scheduled Jobs , users often hit the maximum character limit unexpectedly. This results in rewriting and poor user experience. This article provides a simple and safe solution that shows remaining characters for specific fields , improving form usability—without using unsafe DOM manipulation techniques. 💡 Use Case: You're creating or editing records in tables like: sys_script (Business Rules) sys_client_script (Client Scripts) sys_trigger (Scheduled Jobs) You try typing in the Name or Short description fields, and suddenly you hit a max character limit without any warning. This script shows the remaining characters live , just below the field, to avoid surprises. ✅ Key Features: Works on standard forms (not just Service Portal) No risky HTML DOM manipulation Displays live character counter Optionally shows warning message when limit is exceeded Easy ...

How to Set Up Calendar Invites for Outlook Using ServiceNow

Image
Introduction:   Creating calendar invites for Outlook through ServiceNow can significantly streamline the scheduling of meetings and events. This guide will walk you through the steps to set up an iCalendar event and trigger it via email notification using the import/export mapping feature in ServiceNow. We’ll explore how to map the date fields to the dtstart and dtend variables and create a custom email template. Throughout the blog, references to the out-of-the-box change example from the change_request table will enhance your understanding, making the setup process accessible and straightforward for all users. Step 1: Set Up Import/Export Mapping To begin, you need to configure the Import/Export Maps Table to translate date and time fields into the iCalendar format recognized by Outlook. Access the Table : Type sys_impex_map.list in the Type Filter Text on the left or search for it in the list of tables. Create a New Entry : Click the New button. Name : Use the format ical...