Hello Anjali,
You will need to use a nested if formula.
Something like this
IMAGE(
IF(ISPICKVAL(API__c, “Confirm”), “img/msg_icons/confirm32.png”,
IF(ISPICKVAL(API__c, “Error”), “img/msg_icons/error32.png”,
IF(ISPICKVAL(API__c, “Warning”), “img/msg_icons/warning32.png”),
IF(etc….))
)
)
Or you can also try out the case formula that will be much easier.
IMAGE(
CASE(API__c,
“Confirm”, “img/msg_icons/confirm32.png”,
“Error”, “img/msg_icons/error32.png”,
“Warning”, “img/msg_icons/warning32.png”,
“Info”, “img/msg_icons/info32.png”,
“/s.gif”),
“Status”)
API__c is the API Name of the picklist field that you want to base upon.
Thanks.