To add error message in UI page/pop up (Resolve button) in SOW Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
19 hours ago
Scenario
We have a Resolve button on the Incident form.
Earlier, the requirement was that Resolution Notes should be at least 50 characters when resolving an incident.
For the classic UI, I implemented an onSubmit Client Script that checks the length of resolution_notes and prevents submission if it’s less than 50 characters. This works perfectly.
New Challenge
In Service Operations Workspace (SOW), when an agent clicks Resolve, a pop-up (modal) opens asking for:
- Resolution Code (mandatory)
- Resolution Notes (mandatory)
See screenshot below:
Now, I need to validate Resolution Notes inside this pop-up so that:
- If the notes are less than 50 characters, an error message appears inside the pop-up.
- The Resolve action should not proceed until the condition is met.
What is happening is once i click on the resolve button even after giving less than 50 characters --> the Pop up gets closed and the error shows in the field.
expectation -
