Html input field in glide modal window #2069
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note on previous PR :
[https://github.com/https://github.com//pull/1898]
A previous pull request containing this implementation was closed due to concerns about missing attribution and similarity to a community post.
I want to clarify that I am the original author of both the pull request and the related community post:[ServiceNow Community: Add HTML Input Field in GlideModal Window]
Article Link : [https://www.servicenow.com/community/developer-forum/add-html-input-field-in-glidemodal-window/td-p/3326479/page/2]
Visual Proof :
PR Description:
This Contribution demonstrates how to include HTML input fields, including rich text editors, inside a GlideModal window in ServiceNow.
-Real-Life Example of Use
In ServiceNow ITSM, support agents often need to add detailed notes or updates quickly without losing their workflow context. For instance, when investigating complex incidents, agents can click the "Add Details" button to open a modal with rich text input to document findings, attach formatted comments, or paste troubleshooting steps. This modal dialog prevents navigation away from the incident form, speeding up data entry and improving information capture quality.
-Use Case:
-Create a UI Page (e.g., rich_text_modal) containing input fields such as short description (string) and description (Rich Text/HTML).
-Create a UI Action (e.g., "Add Details") on a target table (e.g., Incident) to open the UI Page in a GlideModal.
-User opens the modal and inputs data without navigating from the record page.
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions
Visual Proof:
Thank you for checking this contribution! Your feedback and improvements are encouraged.