Is it possible to use a script include as value to define a field style?

cinthyareatiga
Giga Contributor

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.

1 ACCEPTED SOLUTION

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


View solution in original post

17 REPLIES 17

cinthyareatiga
Giga Contributor

Hi Guys,



I have tried all your ideas but it is still not working, the instance is in Geneva Patch 5. One of my partners tried on Geneva Patch 6 and it worked, I wonder if there is a property or something that I should activate to make possible to use the script include as the value evaluator, and if that might be like an upgrade from patch6?



Thanks,



Cinthya.


Can you share your script include and the line used in the field style? We can take a look.


Sure:


-Script Include


find_real_file.png



-Style


find_real_file.png


You are not passing in any arguments in the function definition. but you are passing current when calling that function. Remove current and you are good to go


Does it color the cell if you just do:



javascript:true