how can we set vip flag based on users band with out using vip check box on user field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2024 11:41 PM - edited 10-11-2024 12:08 AM
Hello,
we have a requirement to set vip flag on caller field based on users band. on user table we have reference field band if users band is b or b+ then we have to set vip flag on incident caller field
i tried with the below script it is checking for users band and alert test 3 is populating but not setting the flag in incident caller field please help me to fix it.
client script
script include:_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 01:33 AM - edited 10-11-2024 01:33 AM
Hello @Arun61
1.Please check if you are getting anything in answer please alert that and if you are convert into lower case then put the lower case 'b' instead of 'B' please perfome the required changes and alert the answer.
Please look into this condition
if (answer.toLowerCase() == 'B' || answer.toLowerCase() == 'B+' || answer == 'B' || answer == 'B+')
2. First please check you are getting the vip check on caller without the condition to check you css and html works or not then put into the condition and if its not working then modify your code.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 01:39 AM
Hello @Arun61
You also use the Field CSS for this requirement like below that is for the OOB and you just need to change according to your requirement.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 01:41 AM
Why make it so complicated? Why not just set the VIP flag to true based on the value of the band field? What are your reasons for not using the VIP flag? And even if you don't want to use it, all you need to do is configure a field style based on your band field, similar to the one available out of the box.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/