You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, I need to go to simple-form/helpers.js and change the 1 line of code of UI.registerHelper('check_box', function(field, options) , changing "label for=field" to "label class="checkbox":
from
html = "[label for='"+ field +"'][input id='"+ field +"' name='" + field + "' type='hidden' value='false']
[input name='" + field + "' class='"+ html_class +"' type='checkbox' value='true' " + checked + required + "]" + label + "[/label]";
to
html =" [label class=checkbox]
[input id=+ field + name= + field + type=hidden value=false]
[input name= + field + class=+ html_class + type=checkbox value=true + checked + required + ] + [/label]+label"
I'm using ionic css, so the previous code does not render it correctly.
My suggestion is to compare the string that UI helper builds with the accurate html code for that item.
P/S: I have to convert the < > tags in my code to [ ] , otherwise github truncates my code, dont know why?
Hi, I'm trying to add a checkbox field to the signup form, without much success.
Code:
Username is getting serialized to the database properly - what am I doing wrong for the supplier checkbox?
If a dropdown works, I'm OK with switching to that as well, though I didn't find any examples of people using dropdowns, either.
Thanks
The text was updated successfully, but these errors were encountered: