-
Couldn't load subscription status.
- Fork 6
Description
That's the form I have:
<%= form_for @store, :url => stores_path, :html => { :multipart => true, :id => "tooltipContainerForm"} , remote: true do |f| %>
in html it turns to:
< input autofocus="autofocus" class="form-control" id="store_name" name="store[name]" placeholder="Store Name" type="text" data-bv-field="store[name]" >
so in the script when I use
fields: {
"store[name]": {
validators: {
notEmpty: {
message: 'The first name is required and can not be empty'
I get this error on the browser console:
Uncaught TypeError: Cannot read property 'getTitle' of undefined
I tried to change the script to
store[name]: {
validators: {
notEmpty: {
message: 'The first name is required and can not be empty'
I got this on the console:
Uncaught SyntaxError: Unexpected token [
I'm not sure how to fix this. Tried to change name html attribute for the text_field but couldn't.