Salesforce - Visualforce必填字段展示

原文鏈接: 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>
發佈了95 篇原創文章 · 獲贊 39 · 訪問量 12萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章