formBuilder
formBuilder copied to clipboard
assets/lang/en-US.lang 404
Downloaded the files from your site, so have only
form-builder.min.js
form-render.min.js
Added them to the page, they are stored in my /js/formbuilder/ folder:
<script src="<?php echo site_url('/js/formbuilder/form-render.min.js'); ?>"></script>
<script src="<?php echo site_url('/js/script.js'); ?>"></script>
But your JS files are trying to call other files not in your download, and also relative to the page I am on, so I get:
https://mysite.co.uk/app/builder/edit/assets/lang/en-US.lang 404
So a number of issues:
- I would not have a folder called assets/lang/ under my edit page
- I would not even have it at root if you called it like /assets/lang/
- And the folder and files are not in the download anyway lang/en-US.lang
- I assume there should be css files too seen as your form builder is styled nice?
I know its all on Github but I dont use NPM and would not want all the files from the src folder, so it would be good that the download only includes all the files needed to get it working?
Thanks
I do have another error but not sure if its related:
form-builder.min.js:19 Uncaught (in promise) TypeError: q.sortable is not a function
@amityweb The files used for the website are built specifically for that use and have configurations attempting to pull language files from the assets/lang/
directory. If downloading from the site be sure to use the options from the dropdown:
The package is also available from npm: https://www.npmjs.com/package/formBuilder
Hi Kevin. Yes thats where I got the files from. I clicked FORMBUILDER.ZIP from the Distribution section in the Download menu, as per the screenshot. The zip only has the following files: form-builder.min.js form-builder.min.js.gz form-render.min.js form-render.min.js.gz
form-builder.min.js then references the assets/lang/ folder which is not included but is calling them relatively anyway, not from root. So even if they were in there, they would not work on a sub-page. And no stylesheets included either.
i see the issue now. Languages were moved to their own repo and no longer included with formBuilder downloads.
You can set the i18n.location
config option to https://formbuilder.online/assets/lang/
until a fix is released.
Hi @kevinchappell, we're using your plugin in this rails module and we're going to add the files to our project (see here). Unfortunately, this is the only way we can do it without adding a link to a CDN that isn't GDPR-friendly.
Do you think it would be possible to provide these translations in a packaged version again in the future?
Just download the file from https://formbuilder.online/assets/lang/en-US.lang. And put it in your /assets/lang folder.
As advised by others, downyou your languages from https://github.com/kevinchappell/formBuilder-languages and serve them locally. en-US.lang is built in