formtools / module-form_builder

The Form Builder module.
https://docs.formtools.org/modules/form_builder/
15 stars 21 forks source link

JavaScript Form Builder Resource applied as CSS Sheet, when specified as JavaScript type #1

Closed benkeen closed 6 years ago

benkeen commented 10 years ago

Form Builder | Resources | Java Script

Created a Resource that was a javascript script. Checked in the MySQL table and confirmed the entry was saved as resource_type "js" (where all other entries were "css").

When added a form template as {{$R.xxxx}}, I see this in this in the HTML source code when the form is rendered in a web browser:

where I should be seeing a script tag:

I hope this is clear, but please let me know if there is any more information I can provide. I have tried this a few times with different scripts, so I think it is a legitimate bug.