Commit 382d145e authored by Irina Oleynik's avatar Irina Oleynik

Add new file

parent 07df5633
if (!model.EVENT_valueChange) {
model.on('valueChange', () => {
let textboxPassportNumberZ = model.playerModel.getModelWithId('textbox_passport_number_z'); //поменять на нужный textbox
if (textboxPassportNumberZ) {
let inputValue = textboxPassportNumberZ.getValue();
let numberOnly = inputValue.replace(/\D/g, '');
if (numberOnly) {
textboxPassportNumberZ.setValue(`${numberOnly} мес.`);
}
} else {
console.error('Поле "textbox_passport_number_z" не найдено.');
}
});
model.EVENT_valueChange = true;
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment