Solved

Form plugins - workflow comments

  • 18 October 2023
  • 6 replies
  • 161 views

Userlevel 2
Badge +7

I have downloaded the Workflow comments plugin but I can't seem to add it to my tenant. 

First, the instructions say to “Import the plugin and use the Element name: wf-comments.” I guess I’m not understanding how to import the plugin, nor which JavaScript file I’m supposed to upload. When I downloaded the plugin and extracted the files, there are two folders - _MACOSX and workflowcomments - each of which contains five JavaScript files. I assumed I would use the file called workflow-comments (in the workflowcomments folder), so I tried uploading it and using the Element name as described. But I get the error “Failed to load the plugin definition.” In fact, I get this message regardless of which JS file I try to upload.

I have also tried copying the JS files into a SharePoint folder and using the URLs. Same error message.

I have successfully imported other plugins to my tenant. What am I doing wrong with this one?

icon

Best answer by SimonMuntz 20 October 2023, 00:22

View original

6 replies

Userlevel 6
Badge +22

Hi @DavidAD 

If you host the files on a public-facing site like GitHub, does that help?  Hosting on SharePoint won't work as it requires credentials to access them, and those credentials are not sent.

I am guessing that the previous plugins you used only had one.js file. As this has multiple files and the first file imports at least three others, it errors as those files are not accessible.

Userlevel 2
Badge +7

Hi, @SimonMuntz - I don’t currently have access to a public-facing site, but I’ll look into it. Thanks!

Userlevel 7
Badge +12

@DavidAD A little late to the party, but if you are still looking there is info in the help files to get started with using github to host your files. 
https://help.nintex.com/en-US/formplugins/Reference/Hosting.htm

Userlevel 1
Badge +5

I had the same question about the “Failed to load the plugin definition” error.  Now I am trying to host it on GitHub but I don’t know how to convert it to the proper URL. 

I placed the files in a repository and the final URL looks like this,

https://github.com/username/Workflow-Comments/blob/main/workflow-comments.js

whereas the instructions tell me it should look like this,

https:://username.github.io/workflow-comments.js

 

The instructions on GitHub are only confusing me more.  Am I supposed to be signing up for an Enterprise account in order to do this?

Userlevel 7
Badge +12

no you shouldn’t need an enterprise account.. Take that link you have and paste it into https://www.jsdelivr.com/github, then use the jsdelivr link. in your plugin config. 
I’ve found this to be the easier option. 

With any luck we’ll see multi-file upload support for plugs in the near future, as plugs become more complex, it is quite often they will require multiple files. 

 

 

Userlevel 7
Badge +12

I had the same question about the “Failed to load the plugin definition” error.  Now I am trying to host it on GitHub but I don’t know how to convert it to the proper URL. 

I placed the files in a repository and the final URL looks like this,

https://github.com/username/Workflow-Comments/blob/main/workflow-comments.js

whereas the instructions tell me it should look like this,

https:://username.github.io/workflow-comments.js

 

The instructions on GitHub are only confusing me more.  Am I supposed to be signing up for an Enterprise account in order to do this?

I’ve updated the instructions on the plugin page to hopefully make it a bit clearer.. 

Reply