AnsweredAssumed Answered

Using JQuery Form Plugin with RequireJS Dashboard

Question asked by Kleyson Rios on Oct 9, 2018
Latest reply on Oct 11, 2018 by Kleyson Rios



I'm trying to use the JQuery Form Plugin in a RequireJS Dashboard.


Running the following code in some posExecution callback:


function() {
    dataType: 'json',
    success: function(res) { 


I get the following error in the browser console:


[error] WD: Error updating render_formUpload:
[error] WD: TypeError: $(...).ajaxForm is not a function
  at proto.constructor.postExecution (http://localhost:8080/pentaho/api/repos/%3Apublic%3Acfr_teste2.wcdf/generatedContent?debug=true:142:20)
  at proto.constructor.<anonymous> (http://localhost:8080/pentaho/plugin/pentaho-cdf/api/resources/js/dashboard/Dashboard.lifecycle.js:435:34)


But if I change the dashboard settings for a non-RequireJS (legacy) Dashboard, the code works perfectly.


How to load the jquery plugin to be used in a RequireJS dashboard ?

Should I open a JIRA case for this ?


Best Regards.

Kleyson Rios.