function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sf ostsf ost 

Display field values on progress bar in vf page

Hi guys,

I wanted to change the color of the progress bar based on fields. How can I acheive this? Below image is the reference..

User-added image
Dario BakDario Bak
Simple sf ost!

You will need to upload 2 images per stage (green / gray). Upload all images in a zip static resource.
You can have a hidden formula field in that object (text) per stage. Text will say the name of the image


Lastly, you have your visualforce code:
<apex:image url="{!URLFOR($Resource.TestZip, '{!formulaFieldWithTheImageName}')}" width="50" height="50" />