- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 01:14 AM
When user tries to enter short description on incident form,if short description is same as recently entered short description,then user must not be able to submit incident.How can we achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 01:40 AM
Hi @Shubham_verma
Try this
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 02:02 AM
@Shubham_verma
The script will take the SD value that you're entering, with all the incidents present in the system, if the SD matches with any other incident's SD, then it will not allow you to save the incident, however, if no SD matches then it will allow you to save the incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 02:52 AM
@Shubham_verma , when you update XYZ to XYZ , there wont be any difference right Shubam
Technically when you update from XYZ to YZA and then when you update YZA to XYZ in next update it throughs error
Regards,
Shyamkumar
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 01:40 AM
Hi @Shubham_verma
Try this
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 01:49 AM
After using this script,When I am updating short description with different name its not working,If I use same short description value which was written earlier,then incident is getting saved.
If short desc value is same as earlier then it should not get saved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 02:02 AM
@Shubham_verma
The script will take the SD value that you're entering, with all the incidents present in the system, if the SD matches with any other incident's SD, then it will not allow you to save the incident, however, if no SD matches then it will allow you to save the incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 02:39 AM
The code you provided is working fine when creating a new incident & update incident but,
when I open a existing incident & SD is XYZ .When I again write XYZ in SD its getting saved.I wanted to abort if I write same SD as written earlier on existing incident.It should not get saved..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 02:55 AM
@Shubham_verma
There is no sense in writing BR in this case as BR will work only when the record is updated.
See if your incident's SD is XYZ and you're clearing it out and writing again XYZ as the SD then the BR will not run.