- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 05:37 AM - edited 05-30-2024 06:09 AM
Hey Ashish
First I tried to create a Business role without any scripts.
But it is not changing or updating anything on my Incident form😔
Then I wanted to try Client script.
However, it did not work either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 05:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 08:02 AM
Hi @AysenurU ,
You can write onChange client script and populate the Channel value,
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 08:06 AM
Thanks for your reply. I have just seen that you also answered my friend's very same question. Your solution works well. Thank you. 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 08:10 AM
@AysenurU Thank you for this ! Please close this thread by accepting the appropriate answer