It looks like you're new here. If you want to get involved, click one of these buttons!
$fields['my_field'] = array('type' => 'select', 'options' => array(), 'js' => '<script>alert( "hello" );</script>');
$fields['my_field'] = array('order' => '-80', 'type' => 'select','options' => array(), 'js' => 'hello');
Comments
If the js filename matches the field name
$fields['my_field'] ... 'js' => 'myfield'
I get the following error: "TypeError: my_field is not a function"If the js filename id different
$fields['my_field'] ... 'js' => 'hello'
I get this one: "ReferenceError: hello is not defined"In the documentation, a string is used both for inlining the code and including a file (http://docs.getfuelcms.com/general/javascript#modules).