- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 01:11 AM
Hi all,
- I'm looking for a request, if "assigned to" is a some perticular user (reference to sys user table) then need to clear the value and revert back the changes on page.
I'm trying the below script but it's not working as expected, it's working for every user not to specific to user sys Id.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 01:28 AM
Hi @Vijaykumar K ,
You are using 'if' condition and you are using ';', so it is not entering the condition.
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 01:28 AM
Hi @Vijaykumar K ,
You are using 'if' condition and you are using ';', so it is not entering the condition.
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 02:31 AM
Thank you all for your usefull suggestions. 🙂
@ServiceNow Use6 that's what I'm looking for . Thank you 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 01:28 AM
Hi @Vijaykumar K ,
Try make the following changes
A better approach tho would be to check the user's name: if(assign.name =='you user's name');
Cheers!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 01:53 AM
@Vijaykumar K On line number 5 update your code as follows.
var assign = g_form.getValue('assigned_to');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 02:01 AM
Hello @Sandeep Rajput ,
I have already given answer same as your's.
Then why you are sending same again.
It will confuse readers.