![](/img/trans.png)
[英]Display <apex:inputField values> based on the value of the first input Field salesforce
[英]Salesforce apex:inputField
我是Salesforce和Apex的新手。 在apex:input字段中,我使用html-maxlength,它工作正常,但在IE11中,它在Submit button上顯示消息。
請提出如何找到該CSS類或如何更改其樣式的建議
<apex:inputField id="phonePrimary" value="{!primaryContact.Phone_Number__c}" onKeyDown="isNumberOnlyForPrimary(event);" onKeyUp="formatPrimaryPhoneNumber(event);" styleClass="form-control phonePrimary" html-maxlength="10" />
為什么使用max-length屬性? apex:inputField表示與相應的salesforce字段相同的“屬性”。 因此,當對象中的字段為Text(10)時,則自動最多只能存儲10個字符。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.