Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes custom field disapears #211

Open
kubasienki opened this issue Aug 29, 2016 · 0 comments
Open

Sometimes custom field disapears #211

kubasienki opened this issue Aug 29, 2016 · 0 comments

Comments

@kubasienki
Copy link

We cannot find any regularities in such behavior. Simply from time to time my custom field disappears from form. here's code:
`function() {
Formbuilder.registerField('thumb', {
order: 15,
view: "<% for (i in (rf.get(Formbuilder.options.mappings.OPTIONS) || [])) { %>\n <div style="font:normal normal normal 14px/1 FontAwesome;">\n <% if (i==0){ %> \n <div class="fb-thumb-up a_<%= i %>">\n <% } else { %>\n <div class="fb-thumb-down a_<%= i %>">\n <% } %>\n <input type='radio' <%= rf.get(Formbuilder.options.mappings.OPTIONS)[i].checked && 'checked' %> onclick="javascript: return false;" style="display:none;"/>\n \n <%= rf.get(Formbuilder.options.mappings.OPTIONS)[i].label %>\n \n \n \n <% } %>",
edit: "<%= Formbuilder.templates'edit/size' %>\n<%= Formbuilder.templates['edit/countable']({ includeOther: false }) %>\n <%= Formbuilder.templates['edit/thumboptions']({ includeOther: false }) %>",
addButton: "<span class="symbol"><span class="fa fa-circle-o"> Thumb",
defaultAttributes: function(attrs) {
attrs.field_options.options = [
{
label: "",
checked: false
}, {
label: "",
checked: false
}
];
attrs.field_options.size = 'S';
return attrs;
}
});

}).call(this);`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant