Jump to content

Recommended Posts

There is no need for PHP formatting. You can use the standard output format, and the way I would do it is by using the field value as a CSS class in the output format and then creating new CSS classes to change the color.


So the output format would be:

<span class="{optionvalue}">{fieldtext}</span>

And with option values "one" and "two" the CSS would be:

.jrFieldValue .one {
    color: red;
.jrFieldValue .two {
    color: blue;

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.