How to get the value of the current assignment groups company in a client script?

will_forster
Tera Guru

Hi all,

 

Is there a way to get the value of the company of an assignment group on a form from a client script ?

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Will,

Do you mean Assigned To person's Company? You need a combination of Script include & client script for it. Follow link

View solution in original post

10 REPLIES 10

this was the best option rather than assignment group

Swetang
Tera Contributor

You can also use getReference method:

function onChange(control, oldValue, newValue, isLoading) 
{
var assig_gr = g_form.getReference('assignment_group', doAlert); // doAlert is our callback function }
function doAlert(assig_gr) { //reference is passed into callback as first arguments
if (assig_gr.company != '')
alert
('Company is ' + assig_gr.company);
}

Please Refer:
GlideForm - Client

Prince Arora
Tera Sage
Tera Sage

@will_forster 

 

Can you share some screenshot, where is your field as given description is not complete to solve your issue.

i want to get the value of company from the current assignment group on a client script

 

will_forster_0-1687866154850.png

 

@will_forster ,

 

If we are talking about OOB table "sys_user_group", there is not existng company field there,

Have you created a field on groups table with the name of company?