Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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 (32.1k points)
edited 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.

Go for this in-depth job-oriented salesforce training online now!

Browse Categories

...