• lai
    January 24, 2018 at 12:50 am #4940

    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
    January 24, 2018 at 9:40 am #4942

    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
    January 24, 2018 at 6:21 pm #4948

    Dear Stephen,

    It’s working perfectly now.

    Thanks a lot for help. 🙂

     

    SPARK Support
    January 25, 2018 at 1:31 pm #4952

    Hi Lai,

    Glad to hear that worked for you.  You’re welcome.

    Regards,

    Stephen P.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search