原文鏈接: https://salesforce.stackexchange.com/questions/5462/required-field-mark-red-vertical-bar-not-coming
1.使用VF標籤展示
<apex:pageBlock >
<apex:pageBlockSection>
<apex:pageBlockSectionItem>
<apex:outputPanel>
<div class="requiredInput">
<div class="requiredBlock"></div>
<apex:inputText value="{!numberOfRowToRemove}"/>
</div>
</apex:outputPanel>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
2.使用Html展示*號
選擇關係: <span style="color: red;font-size: 18px;">*</span>