How to make sure that the user choose only one value into a list collection

Alon Grod
Tera Expert

Hi,

I created a m2m table between sys_user_group and task tables. I created a UI Action on the incident table that when the user click on the button, he can choose multiple groups and add them to the current incident. Is there any way to make sure that the user will be able to choose only one group even though its a list collector? after the user chooses the groups and click save the records are inserted into u_m2m_task_sys_user_group as multiple records. Is there any way to abort the action and throw error to the screen if he chooses more than one group?

Screenshot 2023-09-20 at 20.57.28.png

 

Screenshot 2023-09-20 at 20.58.08.png

 

6 REPLIES 6

@Sagar Pagar but the user need to click on the UI Action, then he needs to chooses groups from sys_user_group table, his selection should populate a field on the incident table. How can I achieve that?

That is bad design and contrary to how SN UI has been designed to work.

If a user needs to fill in one group when submitting an incident, that should be a mandatory field on the Incident form - in this case a Reference.j