Salesforce
PDII · Question #114
What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)
The correct answer is B. <apex:outputLink value="/{!case.Id}" target="blank"> {Icase.Name}</apex:outputLink> C. <apex:outputLink value="{!URLFOR($Action.Case.View,case.Id)}". See the full explanation below for the reasoning.
Question
What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)
Options
- A<apex:outputLink value="{$URLFOR($Action.Case.Open, case)}" target="blank"> {Icase.Name}
- B<apex:outputLink value="/{!case.Id}" target="blank"> {Icase.Name}</apex:outputLink>
- C<apex:outputLink value="{!URLFOR($Action.Case.View,case.Id)}"
- D<apex:outputLink value="!viewCase(case.Id)}" target="_blank">{Icase.Name} </apex:outputLink>
How the community answered
(32 responses)- A6% (2)
- B75% (24)
- D19% (6)
Community Discussion
No community discussion yet for this question.