0 votes
1 view
in Salesforce by (11.9k points)

I am new to salesforce and Apex . In apex:input field i have use html-maxlength it is working fine but in IE11 it is showing message on submit button .

enter image description here

Please suggest how can i find thi css Class or how can i change it style

<apex:inputField id="phonePrimary" value="{!primaryContact.Phone_Number__c}"  onKeyDown="isNumberOnlyForPrimary(event);" onKeyUp="formatPrimaryPhoneNumber(event);" styleClass="form-control phonePrimary" html-maxlength="10" />

1 Answer

0 votes
by (30.1k points)
edited ago by
Why do u use the max-length attribute? An apex:inputField represents the same "attributes" like the corresponding salesforce field. So when your field in your object is e.g. Text(10) than you automatically can store only up to 10 chars.
Welcome to Intellipaat Community. Get your technical queries answered by top developers !