Salesforce Certified Platform Developer II — Question 88
What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)
Answer options
- A. <apex:outputLink value="{$URLFOR($Action.Case.Open, case)}" target="blank"> {Icase.Name} </apex:outputLink>
- B. <apex:outputLink value="/{!case.Id}" target="blank"> {Icase.Name}</apex:outputLink>
- C. <apex:outputLink value="{!URLFOR($Action.Case.View,case.Id)}" target="blank">(LIE{!case.Name}</apex:outputLink>
- D. <apex:outputLink value="!viewCase(case.Id)}" target="_blank">{Icase.Name} </apex:outputLink>
Correct answer: B, C
Explanation
Option B uses the correct syntax to create a link to the case using its ID, while option C correctly utilizes the URLFOR function to produce a link to view the case. The other options have syntax errors or incorrect use of functions that would prevent them from working correctly.