You need to sign in to do that
Don't have an account?
Matthew Allen
visualforce conditional banner
Hi,
I have the below code. Could someone help me change it so that the colour of the banner changes based on the days_since_update_2__c field please? ideally something like, >60 Red, >30 Amber else Green.
I know it's a lot to ask but hopefully you can help.
Matt
I have the below code. Could someone help me change it so that the colour of the banner changes based on the days_since_update_2__c field please? ideally something like, >60 Red, >30 Amber else Green.
I know it's a lot to ask but hopefully you can help.
Matt
<apex:page standardController="Group_Relationship__c" > <div id='MyCustomHeaderBanner' style='width: 100%; float: left;'></div> <script> window.onload = function() { var myBannerHTML = "<div style='background-color: lightgrey; width: 100%; float: Centre;font-family:calibri;font-size:16px;color:black;text-align:center;'> Action plan last updated by  {!Group_Relationship__c.Last_Update_By__c} {!Group_Relationship__c.Days_since_update_2__c} </div>"; document.getElementById("MyCustomHeaderBanner").innerHTML = myBannerHTML; }; </script> </apex:page>
Matthew Allen
Sorry, make that based on the Days_since_update__c field (no 2)
Raj Vakati
tr this