Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

To add error message in UI page/pop up (Resolve button) in SOW Workspace

Mohammed Daiyan
Tera Contributor

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.

MohammedDaiyan_0-1764246568701.png

expectation - 

MohammedDaiyan_1-1764246621655.jpeg

 



0 REPLIES 0