function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jonathan Wolff 7Jonathan Wolff 7 

div-class does not render right

Hello,
I have a checkbox field named "Urlaub__c" on my user. Now I would like to render a Component on Accounts which I would like to have a section that is hidden, when the Urlaub__c checkbox of the owneruser is not checked.
I tried it like that:
 <div class="header-column" width="100%" rendered="{v.OwnerUser.Urlaub__c == 'true'}">

But the section does still not hide when I uncheck the box. Could you tell me what I need to change?
PriyaPriya (Salesforce Developers) 
Hi Jonathan,

Hope you are getting the value of Urlaub__c in controller.
Also can try using <aura:if>
<aura:if isTrue="{!v.truthy}">
    True
    <aura:set attribute="else">
      False
    </aura:set>
  </aura:if>


Hope this is helpful!

Regards,
Ranjan