You need to sign in to do that
Don't have an account?
LaurensB
' Using Visualforce Pages in Page Layouts and Mobile Cards' challenge
Hi,
I have a question. I can see this code is working fine in my org
<apex:page standardController="Opportunity">
<apex:outputLabel>{!Opportunity.Name}</apex:outputLabel>
<apex:outputLabel>{!Opportunity.StageName}</apex:outputLabel>
<apex:outputText value="{!IF(Opportunity.StageName=="Prospecting", 'Test 1', IF(Opportunity.StageName=="Proposal/Price Quote", 'Test 2', IF(Opportunity.StageName=="Needs Analysis", 'Test 3', IF(Opportunity.StageName=="Negotiation/Review", 'Test 4','Test 5'))))}"/>
</apex:page>
But the challange keeps saying:
Challenge not yet complete... here's what's wrong:
The page isn't evaluating the 'Negotiation Review' stage.
Very frustrating. Anyone an idea?
Much appreciated in advance.
I have a question. I can see this code is working fine in my org
<apex:page standardController="Opportunity">
<apex:outputLabel>{!Opportunity.Name}</apex:outputLabel>
<apex:outputLabel>{!Opportunity.StageName}</apex:outputLabel>
<apex:outputText value="{!IF(Opportunity.StageName=="Prospecting", 'Test 1', IF(Opportunity.StageName=="Proposal/Price Quote", 'Test 2', IF(Opportunity.StageName=="Needs Analysis", 'Test 3', IF(Opportunity.StageName=="Negotiation/Review", 'Test 4','Test 5'))))}"/>
</apex:page>
But the challange keeps saying:
Challenge not yet complete... here's what's wrong:
The page isn't evaluating the 'Negotiation Review' stage.
Very frustrating. Anyone an idea?
Much appreciated in advance.
Thanks,
Kaustav
All Answers
Thanks,
Kaustav
Sandeep Bhanot
Salesforce.com
<apex:page docType="html-5.0" standardController="Opportunity">
<style>
.mypage .quote {
margin: 12px 0;
font-size: 64px;
text-align: center;
}
.mypage .delta {
font-size: 24px;
text-align: center;
color: green;
}
</style>
<div class="mypage">
Opportunity Stage Tips:
<apex:outputLabel>{!Opportunity.Name}</apex:outputLabel>
<apex:outputLabel>{!Opportunity.StageName}</apex:outputLabel>
<apex:outputText value="{!IF(Opportunity.StageName=="Prospecting",'Tip1',
IF(Opportunity.StageName=="Needs Analysis",'Tip2',
IF(Opportunity.StageName=="Proposal/Price Quote",'Tip3',
IF(Opportunity.StageName=="Negotiation/Review",'Tip4','Tip5'))))}"/>
</div>
</apex:page>