Jump to content
We've recently updated our Privacy Statement, available here ×

how to color change of field value


drallpradeep

Recommended Posts

How to set the color of field value i.e.

if diet  = non-veg then value of Diet should be print in RED color

if diet = veg then value of Diet should be print in GREEN Color

if diet = veg/Egg then value of Diet should be print in BLUE color

value comes from database by query. 

 

Regards,

Pradeep

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

    <style name="style1" isDefault="false">
        <conditionalStyle>
            <conditionExpression><![CDATA[new Boolean(1==0)]]></conditionExpression>
            <style isDefault="false" style="style1" forecolor="#FF0000"/>
        </conditionalStyle>
        <conditionalStyle>
            <conditionExpression><![CDATA[new Boolean(1==1)]]></conditionExpression>
            <style isDefault="false" style="style1" forecolor="#0000FF"/>
        </conditionalStyle>
    </style>

Link to comment
Share on other sites

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

×
×
  • Create New...