Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

VIP users identified on the ticket table

Venjamin
Tera Contributor

I have an ask to make a custom field stand out whenever a VIP is selected. No big deal, I figured I'd just copy the style from the Incident caller field and switch up the variable. Except that doesn't work. So I looked around, found another person trying for a different table, and that didn't work, either.

So now I have two styles: 

javascript:current.u_customer.vip == true

and
javascript: var answer = current.u_customer.vip == true || current.u_requested_for.vip == true; answer;

Neither of them work. In the second one, I even tried setting up an or for reading another field, and neither pick up. Am I missing something? The actual style is identical to the style on the Caller field. Just seems like it should be working. 

1 ACCEPTED SOLUTION

Nia McCash
Mega Sage
Mega Sage

If you are creating a field style [sys_ui_style] they apply to the list view. If you're looking to add styling to the form view, you will need to create a client script.

See the client script called 'Highlight VIP Caller' for the Incident table as an example.

View solution in original post

5 REPLIES 5

Jake Sadler
Kilo Sage

Hi,

 

I'm not sure what you're trying to do here. Do you want to make a field appear on a form when the caller is a VIP user?

 

Thanks

 

Jake

No, it's just making the u_customer field light up when the user is a VIP. It's what happens for the Caller field on Incident. 

Hi,

 

I recommend a client script and a script include for this for best practice purposes.

 

Thanks

 

Jake

Nia McCash
Mega Sage
Mega Sage

If you are creating a field style [sys_ui_style] they apply to the list view. If you're looking to add styling to the form view, you will need to create a client script.

See the client script called 'Highlight VIP Caller' for the Incident table as an example.