I am having two input field one for phone number and other for OTP. When click the submit button for OTP also I get the phone number value. How can I get the OTP value when the OTP button click?
Template file
Js file
define([
'underscore',
'uiRegistry',
'ko',
'Magento_Ui/js/form/element/abstract',
'Magento_Ui/js/modal/modal'
], function (_, uiRegistry, ko, Component,modal) {
'use strict';
return Component.extend({
isShowPhoneButton: ko.observable(false),
showPhonePopUp: function (){debugger;
var _self = this;
var mobileNumber = _self.value();
},
changeOTP: function (){debugger;
var _self = this;
var otp = _self.value();
},
});
});