UI Action button -->after clicking button assigned to field should be auto populated

v1z-D
Tera Contributor

Hi ,

I'm new to SNOW need help on this task

i have a button on incident form ,once user fill in information and selects assignment group and click on this buttong 'assign to me' then the 'assigned to' should be auto populated with the user of that assignment group selected.

i tried BR before update and SI & CS but not working.

1 ACCEPTED SOLUTION

Raj_Esh
Kilo Sage
Kilo Sage

Hi Vijaya,

 

You can achieve it by using UI Action:

 

Create UI Action

Name: Assign to Me

Condition: gs.getUser().isMemberOf(current.assignment_group)

Script as follows:

current.assigned_to = gs.getUserID();

current.update();

 

find_real_file.png

 

 

 

 

Hope it helps.

 

Thanks,

Raj

--Raj

View solution in original post

3 REPLIES 3

chrisperry
Giga Sage

Could you please share your code?

If this answer is helpful please mark correct and helpful!

Regards,
Chris Perry

Raj_Esh
Kilo Sage
Kilo Sage

Hi Vijaya,

 

You can achieve it by using UI Action:

 

Create UI Action

Name: Assign to Me

Condition: gs.getUser().isMemberOf(current.assignment_group)

Script as follows:

current.assigned_to = gs.getUserID();

current.update();

 

find_real_file.png

 

 

 

 

Hope it helps.

 

Thanks,

Raj

--Raj

v1z-D
Tera Contributor

Thank you it worked.