Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forms not rendererd in the tasklist #65

Open
gogolander opened this issue Jun 13, 2023 · 2 comments
Open

Forms not rendererd in the tasklist #65

gogolander opened this issue Jun 13, 2023 · 2 comments

Comments

@gogolander
Copy link

I've been fighting with this plugin for a while now, the problem being the json is served correctly but the form is not rendered, no matter how I set the form key: both deployment and path show the same result (a blank white "form") both for the start event and for user tasks.

After some digging I found a problem with the config.js shown as an example in this repo.

Since Camunda 7.14, the inclusion of custom javascripts in the applications has been changed (see here).
So, in order to properly load the form renderer, one must edit the config.js file to the new format:

export default {
  customScripts: [
   ... // all new custom scripts go here...
  ],
  requireJsConfig: { // this is the important bit: the content is taken from the old camTasklistConf.customScripts variable
    ngDeps: [],
    deps: ['loadFormio', 'loadformio'],
    paths: {
        'loadFormio': 'scripts/loadFormio',
        'loadformio': 'scripts/formio.full.min'
    }
  }
};

This means that, in order for the plugin to work out-of-the-box in Camunda platform versions 7.14+, the file common/tasklist/scripts/config.js must be modified as above.

So if someone is having my same issue it could be worth trying the piece of code above.

Hope you could find this helpful.

Cheers

@horelvis
Copy link

horelvis commented Feb 2, 2024

Hi Vincenzo!
You saved my life, I had the same problem but with 15 version.
Thanks a million!

@gogolander
Copy link
Author

Hi Vincenzo! You saved my life, I had the same problem but with 15 version. Thanks a million!

I'm happy I helped You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants