SweetAlert2 - 保存输入值到文本字段后返回的是"
P粉445750942
P粉445750942 2023-09-16 19:03:37
0
1
339

i'm trying to make pop-up window when my form loads. and when you enter ID number in the pop-up window, it stores in the text-field in the form. enter image description here - this is where u put the ID Number. enter image description here - and this is where i want the value to be saved. I'm using AgilePoint - and inside i insert js code and sweetalert2. this is the code i'm trying to do:

eformEvents.onFormLoadComplete = function()

{Swal.fire({ //rtl:true

title: 'title', html: '<p>hello</p>', icon:info, input:'text', inputLabel: 'Enter ID'

})

.then(inputValue) => {document.getElementById("Eid").Value = inputValue}

Swal.fire('Success')

})}

我正在尝试在我的表单加载时弹出窗口。 当您在弹出窗口中输入ID号码时,它将存储在表单中的文本字段中。 输入图像说明 - 这是您放置ID号码的位置。 输入图像说明 - 这是我想要保存值的位置。 我正在使用AgilePoint - 在其中插入js代码和sweetalert2。 这是我尝试做的代码:

eformEvents.onFormLoadComplete = function()

{Swal.fire({ //rtl:true

title: 'title', html: '<p>hello</p>', icon:info, input:'text', inputLabel: 'Enter ID'

})

.then(inputValue) => {document.getElementById("Eid").Value = inputValue}

Swal.fire('Success')

})}

P粉445750942
P粉445750942

最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!