You need to sign in to do that
Don't have an account?
Jyoti Trailhead
Display tr in VF page based on User location
I have below code but it is not working - it is showing table row even if Location is not matching...... it displays Location value correctly:
<tr style="{IF({!$User.Office_Location__c} = 'XXXX'),'display: table-row;,none;'}">
<td class="button" width="38em" height="69">
<div>
<apex:image style="float:left; margin:1; width:44px; height:45px;" value="{!URLFOR($Resource.ViewKA1)}"/>
<apex:outputLink target="_blank" value="https://www.salesforce.com" id="HRChatbot">HR Chatbot</apex:outputLink>
</div>
</td>
</tr>
<tr style="{IF({!$User.Office_Location__c} = 'XXXX'),'display: table-row;,none;'}">
<td class="button" width="38em" height="69">
<div>
<apex:image style="float:left; margin:1; width:44px; height:45px;" value="{!URLFOR($Resource.ViewKA1)}"/>
<apex:outputLink target="_blank" value="https://www.salesforce.com" id="HRChatbot">HR Chatbot</apex:outputLink>
</div>
</td>
</tr>
<apex:outputPanel rendered="{!ISPICKVAL($User.Region__c,'North America')}">
All Answers
complete code
It didnt work - it is never checking If condition and showing table row for all users.
Regards
jyoti
<apex:outputPanel rendered="{!ISPICKVAL($User.Region__c,'North America')}">