form to ui page

Yahav Mor
Tera Contributor

Hi all 
I need to take from  the form in INCIDENT the value in the field  assignment_grou and put the value inside the html in  ui page  (i have ui action between them )

How can i take from the field and put it in HTML ?

 

 

 

6 REPLIES 6

Thank  you Ankur Bawiskar 
But what did you write in UI ACTION ?

@Yahav Mor  

please update your script as this

HTML:

<g:evaluate jelly="true" object="true" var="jvar_kparticles">
var assignmentGroup = current.getValue('assignment_group');
var kb = new GlideRecord('sys_user_grmember');
kb.addQuery('group',assignmentGroup);
var list = [];
kb.query();
while(kb.next()){
list.push(kb.getValue('user'));
}
list.toString();
</g:evaluate>

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