原文链接: 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>

本文介绍如何在Salesforce中使用Visualforce (VF) 标签和HTML来正确显示表单中的必填字段标记。通过示例展示了两种方法:一是利用VF标签创建自定义样式以高亮显示必填项;二是直接在HTML中使用星号(*)表示必填字段。
684

被折叠的 条评论
为什么被折叠?



