我使用宏自动化客户端网站,我能够自动化所有字段,但我在执行期间遇到此弹出窗口:
由于弹出,宏执行不会继续进行 它被卡在那里,我必须手动点击确定继续进行。
我试图在YouTube上关注此视频 https://www.youtube.com/watch?v=G-2khNFYQl8
但是我们的公司阻止了所有的vbs脚本,所以我想知道这个弹出问题的任何其他解决方案
代码示例:
if (g_form.getValue('comments') == '') {
//Remove any existing field message, set comments mandatory, and show a new field message
try {g_form.hideFieldMsg('comments');} catch(e) {}
g_form.setMandatory('comments', true);
g_form.showFieldMsg('comments','Comments are required when resolving an Incident.','error');
alert('Click the Resolve Incident button again, the Save button, or the Update button after entering all mandatory Resolution fields.');
return false; //Abort submission
}
//Call the UI Action and skip the 'onclick' function
gsftSubmit(null, g_form.getFormElement(), 'resolve_incident'); //MUST call the 'Action name' set in this UI Action
所有人都可以帮我解决这个问题 感谢你的进步