I am wondering if there is a way to set conditional formulas in Visualforce templates where fields that have a NULL value do not appear as empty spaces in the template.

For instance I have a field "In_Honor_Of__c" if this field is null in record it should not display the null value, or extra space, at all.

Let me know if you have any questions and hope it helps.


Perhaps wrapping that section in an apex:outputPanel.. Doc Reference


<apex:outputPanel rendered="{!!ISBLANK(YOUR_OBJECT.In_Honor_Of__c)}">
    // desired markup here

Any reason why an outputPanel can't be used? Hope this helps!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.