lai
Hi All,
Instead of using ${okButton}.click(); in inline event, isn’t possible trigger this button click() event inside custom html?
function myFunction() {
require([“dojo/ready”, “dojo/query”, “dojo/on”], function (ready, query, on) {
ready(function() {
var buttonElement = query(“div[data-viewid=’okButton’]”)[0];});
button.click();
});
}
I tried code above in custom HTML , managed to get button element but buttonElement.click() is failed with error : dojo.js?build=201709181134:2 TypeError: Illegal invocation
Any idea on this ?
Thanks for input.
SPARK Support
Hi Lai,
Please refer to this article on Control Addressing:
https://salientprocess.zendesk.com/hc/en-us/articles/211965868-Control-Addressing-
Regards,
Stephen P.
lai
Dear Stephen,
It’s working perfectly now.
Thanks a lot for help. 🙂
SPARK Support
Hi Lai,
Glad to hear that worked for you. You’re welcome.
Regards,
Stephen P.