Skip to content

Commit 2724cfe

Browse files
authored
Adding placeholder text on Resolution notes Client Script (#1535)
* Create README.md * Create script.js
1 parent a598c86 commit 2724cfe

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Adding Placeholder Text in Resolution Notes
2+
3+
To maintain consistency and ensure specific information is captured in resolution notes, process owners may require fulfillers to follow a predefined format when resolving tickets.
4+
5+
By adding **placeholder** text in the resolution notes, fulfillers are reminded of the required information(e.g., Root cause, Steps taken, Resolution provided), reducing the risk of missing important details. The placeholder disappears as soon as the fulfiller begins entering their notes, ensuring it doesn't interfere with their input.
6+
7+
## How It Works
8+
9+
### When?
10+
- The placeholder text is automatically added when the state of the ticket changes to Resolved (6).
11+
12+
### What Happens?
13+
- A placeholder text appears in the resolution notes field to guide the fulfiller.
14+
- As soon as the fulfiller starts typing, the placeholder disappears.
15+
- This ensures consistency and alignment with the process requirements.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
2+
if (isLoading || newValue === '') {
3+
return;
4+
}
5+
var res = g_form.getElement('close_notes');
6+
if (newValue == 6)
7+
res.placeholder = "1. Root Cause" + "\n" + "2. Steps taken" + "\n" + "3. Resolution provided"; //Placeholder text as required
8+
else
9+
res.placeholder = "";
10+
}

0 commit comments

Comments
 (0)