Hey Ashish

 

First I tried to create a Business role without any scripts. 

AysenurU_0-1717072175042.png

AysenurU_1-1717072199731.png

But it is not changing or updating anything on my Incident form😔

 

Then I wanted to try Client script.

AysenurU_3-1717072601307.png

However, it did not work either. 

AysenurU_2-1717072525542.png

 

swathisarang98
Giga Sage

Hi @AysenurU ,

 

You can write onChange client script and populate the Channel value,

swathisarang98_0-1717081311559.png

 

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

  var caller = g_form.getReference('caller_id', currentUser1);

}
function currentUser1(caller){
	if(caller.name == 'Abraham Lincoln'){
		
		g_form.setValue('contact_type','self-service');
	}
}

 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

View solution in original post

AysenurU
Tera Contributor

Hi @swathisarang98 

 

Thanks for your reply. I have just seen that you also answered my friend's very same question. Your solution works well. Thank you. 😊

@AysenurU  Thank you for this ! Please close this thread by accepting the appropriate answer