diff --git a/blocks/applyloanform/applyloantemplate.js b/blocks/applyloanform/applyloantemplate.js index ba39422206..8988daa3a5 100644 --- a/blocks/applyloanform/applyloantemplate.js +++ b/blocks/applyloanform/applyloantemplate.js @@ -83,6 +83,7 @@ export function appplyLoanTemplate(properties) { const liItem = document.createElement('li'); liItem.textContent = item.litext; liItem.setAttribute('data-loan-type', item.loantype); + liItem.setAttribute('data-loan-name', item.loanname); liItem.setAttribute('data-get-input', 'form-loan-type'); liItem.classList.add('subpoints'); ul.appendChild(liItem); diff --git a/blocks/applyloanform/loanformapi.js b/blocks/applyloanform/loanformapi.js index e8a0a401f0..0e8f9b7262 100644 --- a/blocks/applyloanform/loanformapi.js +++ b/blocks/applyloanform/loanformapi.js @@ -256,7 +256,7 @@ export function resendOtpAPI(source) { export function workFlow() { getAccessToken() - .then((accesstoken) => generateOTPAPI(accesstoken, cutomerNo().value, loanProduct().dataset.loanType, 'Leadform')) + .then((accesstoken) => generateOTPAPI(accesstoken, cutomerNo().value, loanProduct().dataset.loanName, 'Leadform')) .then(() => { // console.log("Data inserted successfully"); verifyOtpBtnClick();