1

I have the following code

<apex:outputField value="{!auth.InviteAcceptedDate__c}">  
     <apex:inlineEditSupport event="ondblclick" rendered="{!(auth.InviteAcceptedDate__c!=NUll&&auth.InviteSentDate__c!=Null)&&($Profile.Name=='Admin')"/>                      
</apex:outputField>

Here I want the InviteAcceptedDate__c to be inline editable only if 1.InviteAcceptedDate__c is not null 2.InviteSentDate__c is not null 3. And the profile of the user is admin. But the above code doesn't seem to work. I am not sure how to satisfy the conditions. I am fairly new to salesforce, and any help would be really appreciated.

1

Using &&

<apex:outputField value="{!auth.InviteAcceptedDate__c}">  
         <apex:inlineEditSupport event="ondblclick" 
            rendered="{!(auth.InviteAcceptedDate__c!=NUll)&&
                      (auth.InviteSentDate__c!=Null) &&($Profile.Name=='Admin')}"/>                      
</apex:outputField>

Using AND

<apex:outputField value="{!auth.InviteAcceptedDate__c}">  
     <apex:inlineEditSupport event="ondblclick" 
                        rendered="{!AND(auth.InviteAcceptedDate__c!=NUll,
                         auth.InviteSentDate__c!=Null,$Profile.Name=='Admin')}"/>                      
</apex:outputField>
|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.