You need to sign in to do that
Don't have an account?
Keith Lee 25
Help create a pageBlockSection with 3 fields with larger font and conditional highlighting
Hi, I am trying to get three fields on an Account page layout to really stand out above the rest. I'd like to build a visualforce page to look something like this:
So I'd like not only the field values to have larger font but also the field labels and have the values listed under the label. I'd also like to add in conditional formatting to the value on Account Status where if the value is "Active" then highlight it in green and if it is "Inactive" then highlight it in red. I can't figure out how to do this. Any help would be greatly appreciated!
So I'd like not only the field values to have larger font but also the field labels and have the values listed under the label. I'd also like to add in conditional formatting to the value on Account Status where if the value is "Active" then highlight it in green and if it is "Inactive" then highlight it in red. I can't figure out how to do this. Any help would be greatly appreciated!
Following is a visualforce page, which you can modify and add it to your record detail page layout:
(Change Field API Names and IF condition to suit your requirement)
Once you create this VF page, Edit relevant Page Layout and add this visualforce page in desired section.
Lightning:
Classic:
Please mark this as Best Answer, if this helps solve your problem.
All Answers
(I have made Account Type: Prospect -> green, Customer - Channel -> red, other -> black in color. Please make changes to make it work in your org)
Apex:
VF:
Screenshot:
Please mark this as Best Answer, if this helps solve your problem.
Following is a visualforce page, which you can modify and add it to your record detail page layout:
(Change Field API Names and IF condition to suit your requirement)
Once you create this VF page, Edit relevant Page Layout and add this visualforce page in desired section.
Lightning:
Classic:
Please mark this as Best Answer, if this helps solve your problem.