Allow single selection only in related list

kheller
Tera Contributor

Is there any way to limit the selection in a related list to only one at the time ?
I have a requirement to open new incident based on information from the selected record in a related list, so the selection should be limited to only a single selection. This could be by deselecting the previous selection when you click another one, graying out the other records making them unable to select once one is selected, or simply a warning if more than one is selected and disabling the UI action button. Im open for any suggestion 🙂

Thanks!

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

are you saying only 1 row should be selected from related list?

can you share screenshot?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

Yes, preferably only 1 row should be possible to select at the time, but open to any suggestion to solve the requirement. Below is a screen shot from a RITM with the related list containing Checklists. When an item in the checklist is marked with state Failed, I want to be able to create an Incident for it, by selecting it in the list and clicking the Create Incident button below. But then I need ensure that you cannot select more than 1 item in the list, even if there are several with state Failed, because each incident should be created individually.

Hope that made it a bit more clear 🙂

Kind regards,

Ken

 

find_real_file.png

palanikumar
Mega Sage

Hi,

You need to do following:

1) Create before business rule. Check if the Parent is updated and parent ticket already has associated child ticket. If yes throw error message and abort action

2) There is a UI Action named New with Comments as Related List for Incident. Here add a condition to check if the current incident is already a Parent incident. If yes hide. You need to add the logic in Script include and add the condition in UI Action.

 

Thank you,

Palani

Thank you,
Palani