Universal Containers tracks reviews as a custom object in a recruiting application. An interview
score is tracked on each review record and should be numerical, so that hiring managers can
perform score calculations. The scores should be restricted to Integer values l through 5 and
displayed as a set of radio buttons.
How can a developer meet this requirement?

A.
Create the Interview Score field as a picklist, displayed as a radio button on the page layout
B.
Create a formula field that displays the interview score as a set of radio buttons
C.
Create a Visualforce component to display the interview score as a set of radio buttons
D.
Create the Interview Score field with a data type of radio button
No such thing as a radio button field type within Salesforce. The correct answer would be “Create a visualforce component to display the interview score as a set of radio buttons”
1
0
APEX:
public class radioOptions {
List ownershipValues;
public radioOptions(ApexPages.StandardController controller){}
public List getOwnershipValues(){
if(ownershipvalues == null){
ownershipValues = new List();
for(Schema.PicklistEntry p : Account.Ownership.getDescribe().getPicklistValues()){
if(p.isActive() == true){
ownershipValues.add(new SelectOption(p.getValue(),p.getLabel()));
}
}
}
return ownershipValues;
}
}
VF:
0
0
VF:
0
0
C
0
0