- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2016 10:19 AM
Hi,
I have a field called "Problem" in the incident form, which I need to change the backgroung color base on 3 conditions, one of those is a query in another table. So, I need to use a script include to make the server query.
I wonder if I can use this script include as the evaluator in the "Value" field of the Style record for the "Problem" field?
Thanks.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2016 03:31 PM
Sorry, got interrupted and hit Post too quickly...
Since it appears that this is fixed in another release, there's not much more for us to do here.
For those viewing this later... The following field style value does not highlight the cell with the background-color:tomato in Geneva Patch 5. It appears to work fine in Geneva Patch 6.
javascript:true

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2016 10:21 AM
Hi Cinthya,
Yes, you may do this. The script include really just needs to return a true or false to get it to turn the color you want. The value field would look like this:
javascript:myColorChecker(current);
I like to pass the current record so I have access to all the wonderful fields and properties of the current record.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2016 10:36 AM
Here's one I did for a community member last week.
Trying to get Red Dot next to Incident in My Work if it is a Parent Incident

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2016 10:22 AM
I believe you can, but it should return either true or false
javascript: new scripIncludeName().methodName();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2016 10:22 AM
Hi Cinthya,
You may find below thread helpful.
Passing a variable to a script include from a style value field