javascript - How to add custom field to Jquery Form Builder - Stack Overflow

there,I'm working with Jquery Form Builder () and I got to the task: add custom field to the form

there,

I'm working with Jquery Form Builder (/) and I got to the task: add custom field to the form builder.

I want to do it without change the core of this jquery plugin. I already found that I can add it to the function "fieldRender", between other changes.

Doing this I would lose updates of this project, and this custom fields are too specific to offer to the project itself.

I'm already looking for some time and didn't find yet: does anyone knows if there is a way to add custom fields with a sort of extension strategy, so I could build custom fields without change the core code everytime?

Thanks,

there,

I'm working with Jquery Form Builder (https://formbuilder.online/) and I got to the task: add custom field to the form builder.

I want to do it without change the core of this jquery plugin. I already found that I can add it to the function "fieldRender", between other changes.

Doing this I would lose updates of this project, and this custom fields are too specific to offer to the project itself.

I'm already looking for some time and didn't find yet: does anyone knows if there is a way to add custom fields with a sort of extension strategy, so I could build custom fields without change the core code everytime?

Thanks,

Share Improve this question asked Nov 14, 2016 at 16:51 Sávio ResendeSávio Resende 312 silver badges5 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

Support for custom elements was officially added in v2.1 http://formbuilder.readthedocs.io/en/latest/formBuilder/options/templates/

You add 2 options to the editor. For example if you want a Star Rating input

var fields = [{
  label: 'Star Rating',
  attrs: {
    type: 'starRating'
  },
  icon: '

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744357921a4570323.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信