function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
aaryan sriaaryan sri 

On account object some scenarios taxid saving without hyphen

Hi,

I am inputting  taxid on UI in this format "00-0000000" and backend html code also enforcing same format. But some scenarios taxid on account object saving without hyphen like this"000000000". I am not able to replicate this scenario. Please help me, in which scenarios chances of taxid saving without hyphen. Below is the VF code for taxid.

<div class="col-md-6">
                                                            <div class="form-group">
                                                                <label>Tax ID Number</label><br/>
                                                                <apex:inputText id="SGFederalTaxId" value="{!objEnrollmentWrapper.objSmallGroup.objCompany.objAccount.TIN_HF__c}"
                                                                                styleclass="form-control maskField" html-validation-activated="true" html-validate-required="true"
                                                                                html-masking-pattern="00-0000000" html-placeholder="00-0000000"
                                                                                html-validate-minimum-length="10" html-validate-maximum-length="10"
                                                                                html-validate-required-alert-type="4" html-validate-on-change="true" html-enrollment-id="{!objEnrollmentWrapper.objEnrollmentRecord.Id}"
                                                                                html-validate-required-error-message="Required Field" html-validation-inline-message="true"
                                                                                disabled="{!objEnrollmentWrapper.boolEnrollmentReadOnly}"
                                                                                html-validation-focus-on-fail="true"
                                                                                html-validation-focus-on-fail-top-offset="-10"/>
                                                            </div>
                                                        </div>