Possible to use npm libraries in eForms?

评论

1 条评论

  • Avatar
    Harish Lakshmana

    Kelly,

    I tried this basic JavaScript which needs to be improvised but I was able to achieve your requirement.

    In the Form JavaScript window I added below function.

    function loadSheetJS(){
      let scriptEle = document.createElement("script");
      scriptEle.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js ");
      document.body.appendChild(scriptEle);
    }

    then in Rule Builder, for Form Event as 'Load' I configured to Execute Method -> loadSheeJS.

    Saved the eform and opened it to test. In developer console I was able to see the the google CDN jQuery was loaded. Replace the JavaScript URL and try for SheetJS.

    Regards,

    Harish

    0
    评论操作 固定链接

请先登录再写评论。