You need to sign in to do that
Don't have an account?
Jonathan Wolff 7
Aura:if does not worked like hoped
Hello, I have a component on account object. I want to render part of the component dependend on if the checkbox 'Urlaub__c' on the ownerUser is true. The problem I have is, that with the way I did it the section Is not showing up even tough the checkbox is true. Could you tell me what to change so that it works?
<aura:if isTrue="{!v.OwnerUser.Urlaub__c}"> <lightning:layoutItem padding="around-small"> <br></br> <div class="header-column" width="100%"> <div style="font-size: 15px;"><b>{!v.OwnerUser.Vertreter__c.Name}</b></div> <div style="font-size: 10px;">Team {!v.OwnerUser.Team_2020__c}</div> <div> <a href="{!'tel:' + v.OwnerUser.Vertreter__c.MobilePhone}"><lightning:icon iconName="action:call" size="xx-small" alternativeText="Telefon" title="Telefon" /></a> <a href="{!'mailto:' + v.OwnerUser.Vertretung__c.Email}"><lightning:icon iconName="action:email" size="xx-small" alternativeText="E-Mail" title="E-Mail" /></a> <a href="{!v.OwnerUser.Vertreter__c.Link_BookingTime__c}" target="_blank"><lightning:icon iconName="action:new_event" size="xx-small" alternativeText="BookingTime" title="BookingTime" /></a> </div> </div> </lightning:layoutItem> </aura:if>
Try Below Code
And Make Sure The User You Are Getting From Apex In Query Have All The Fields That You Want To Use in Code Please Mark It As Best Answer If It Helps
Thank You!
All Answers
If Your Iterating The Data Please Mark It As Best Answer If It Helps
Thank You!
The Urlaub__c field is on the user object. I give you my whole code, maybe you see where my mistake comes from
Try Below Code
And Make Sure The User You Are Getting From Apex In Query Have All The Fields That You Want To Use in Code Please Mark It As Best Answer If It Helps
Thank You!