In the 'Resolution Information' tab, Resolution notes field to display a watermark in the Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2024 09:11 PM
Hi Team ,
We have a requirement that when ever we are going to resolve the incident . In the Resolution Notes ' Below steps were followed to resolve the incident- ' This text has to be display has a watermark .
can any one please provide onsubmit script for this ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2024 10:31 PM
@nameisnani
As per your requirement, the resolution note should be displayed after submission. Could you please fill in the mandatory fields? Also, please review my first answer as I have updated it.
Thank You!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2024 11:50 PM
@Ashish Parab Watermark should show before incident resolved .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 01:02 AM
Hello @nameisnani
You can try below 2 options-
1. If you want the watermark to be visible before submitting the record and to disappear when the user starts typing, try creating an onChange client script that triggers when the state changes to 'Resolved' as shown below.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if(newValue == 6){
var resolutionField = g_form.getControl('close_notes');
if (resolutionField) {
resolutionField.placeholder = 'Below steps were followed to resolve the incident-';
}
}
}
The watermark will display as below screenshot when state changes to resolved.
2. If you want to display the watermark as text in the Resolution Note field, you can also create an onChange client script that triggers when the state changes to 'Resolved.' In this scenario, the watermark will not disappear and will be considered as text.
Type- OnChange
Field Name- State
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if(newValue == 6){
g_form.setValue('close_notes','Below steps were followed to resolve the incident- \n');
}
else if(newValue !== 6){
g_form.clearValue('close_notes');
}
}
You can add steps followed by 'Below steps were followed to resolve the incident-' watermark.
Please mark this as "correct" and "helpful" if you feel this answer helped you in anyway.
Thanks and Regards,
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 06:05 AM
Hey @nameisnani
I hope you are doing well.
Please let me know if I have answered your question.
If so, kindly mark the appropriate response as correct and helpful so that this thread can be closed and others may benefit from it.
Thanks and Regards,
Ashish