INSR-8061: Fix saving of extension, fix other issues with extension
This commit is contained in:
parent
cfdfb6d210
commit
e773cfdc29
5 changed files with 11 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ function defineGlobalPhoneNumberRules() {
|
|||
function defineGlobalExtensionRules() {
|
||||
defineRule(
|
||||
globalRules.EXTENSION_FORMAT,
|
||||
regex(/^[0-9]{5}$/, errorMessages.EXTENSION_FORMAT)
|
||||
regex(/^[0-9]{1,5}$/, errorMessages.EXTENSION_FORMAT)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@
|
|||
inputId="extensionField"
|
||||
cmsWidgetName="ExtensionQuestion"
|
||||
:validationRules="rules.extension"
|
||||
maxLength="5"
|
||||
disableAutoFill />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@
|
|||
inputId="extension"
|
||||
:cmsWidgetName="widget.extensionQuestion"
|
||||
disableAutoFill
|
||||
maxLength="5"
|
||||
:validationRules="rules.extension" />
|
||||
</template>
|
||||
</modal>
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
inputId="extensionField"
|
||||
cmsWidgetName="ExtensionQuestion"
|
||||
:validationRules="rules.extension"
|
||||
maxLength="5"
|
||||
disableAutoFill
|
||||
class="form-group" />
|
||||
<textboxQuestion
|
||||
|
|
|
|||
|
|
@ -2293,7 +2293,8 @@ export const useMainStore = defineStore({
|
|||
this.order.serviceLocation.zipCode = welcomePageModel?.policyZipCode;
|
||||
this.updatePhoneNumbers({
|
||||
home: welcomePageModel?.phoneNumber,
|
||||
service: welcomePageModel?.phoneNumber
|
||||
service: welcomePageModel?.phoneNumber,
|
||||
extension: welcomePageModel?.extension
|
||||
});
|
||||
},
|
||||
updatePolicyHolderDetails(customerQuestions) {
|
||||
|
|
@ -2305,6 +2306,11 @@ export const useMainStore = defineStore({
|
|||
this.order.customer.firstName = customerQuestions.firstName;
|
||||
this.order.customer.lastName = customerQuestions.lastName;
|
||||
this.order.customer.emailAddress = customerQuestions.email;
|
||||
this.updatePhoneNumbers({
|
||||
home: customerQuestions.phoneNumber,
|
||||
service: customerQuestions.phoneNumber,
|
||||
extension: customerQuestions.extension
|
||||
});
|
||||
this.order.serviceLocation.zipCode = customerQuestions.addressQuestions.zipCode;
|
||||
},
|
||||
updateIsSafeliteProvider(isSafelite) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue