+ Start a Discussion
Stephen HaynesStephen Haynes 

Conditonal Rendering


Rather than have multiple fields on the page layout I would like to use 'Conditional Rendering' my question and it's very basic is :

I wish to add a custom check box field to the account page labeled "Account at Risk' & if the check box = true for three adtional fields to appear labeled 'Monitor date', 'Value' & 'Percentage'.

What code would be required here ?

Many thanks
In the standard page layout you can not conditionally diaplay fields. Alternative is put all 4 fields in a single section like "Risk Information" and when Account at Risk is true enforce a validation to provide  'Monitor date', 'Value' & 'Percentage'.
sumit singh 37sumit singh 37

you need to create diffent page layout, 

1. without 3 fields and should have "Account at Risk" field , 

2. without 3 fields and should have "Account at Risk" field , 

write a workflow to update the pagelayout when  Account at Risk==true;

sumit singh 37sumit singh 37
else use visualforce page
Stephen HaynesStephen Haynes
Hi ,
Many thanks for the responses but what i would like to do , if possible is make the fields appear via condtional rendering using inline VF on the standard Account object ?