How to populate "Additional assignee list Unlock Additional assignee list" filed with script

eyala
Tera Contributor

Hello, I want to populate 

Additional assignee list
by script. I want to get from end user an email address that he want me to add to the assignee and populate it by script
eyala_0-1726743954040.png

 

3 REPLIES 3

Amit Verma
Kilo Patron
Kilo Patron

Hi @eyala 

 

You can configure an On-Change client script to achieve this as shown below. Please note that I have created a custom field for additional assignee list. You can reuse the existing one as well based on your requirement.

 

AmitVerma_0-1726750235722.png

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading || newValue === '') {
      return;
   }

   //Type appropriate comment here, and begin script below
   g_form.setValue('u_additional_assignee_list',newValue);
}

Output :

AmitVerma_1-1726750309228.png

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

eyala
Tera Contributor

is it possibale to do it from record producer ?
I have a variable (string) that I add the emails in it, and after that extract every email.

@eyala 

 

You can map your email field in the Record Producer to the Additional Assignee list field as shown below :

 

AmitVerma_0-1726811083715.png

 

Output :

AmitVerma_1-1726811138797.png

 

AmitVerma_2-1726811189788.png

 

Remember to give in the input comma separated for the email IDs as the list collector expects comma separated values.


Please mark this response as correct and helpful if it assisted you with your question.