-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
How to extend Form elements Without touching Core? #47
Comments
Currently no but this is being worked on for the next version. |
Looking for same functionality. I would like to add validations to Text Field like, URL, Digits Only, URL or Email, and other options supported by http://jqueryvalidation.org/ plugin. Was going though the code, and at current stage, looks like i need to update the core code to add these additional options. Any option to extend the fields without touching the core will be really helpful. Thanks |
Declaring new field types (or predefined elements) would be a great feature, +1 from me. Regarding validation. Would simple Selecting validation rules could be made user friendly by providing pre defined validation rules (I'm thinking dropdown) with option to use raw RegExp by the developer. |
@ivuorinen The fields themselves will definitely have support for pattern (and any other attribute) to take advantage of Constraint API. In the future the field you described could be configured like so:
edit: I forgot to mention that with this configuration the developer could do something similar to this with the generated form which I think is what your'e referring to with I haven't finalized the spec for field declaration but should be similar to add new field types and it dovetails in with the spec for field attribute declaration in the editor I outlined earlier here. With this format If you wanted users to see the
or I think that's the simplest way to provide the granularity of extensibility and forward compatibility developers have been asking for without requiring them to write any actual code. |
Hi, is there still scope on formBuilder for custom elements? Cheers, |
@AdamLitt Not for formBuilder. Due to the amount of refactoring required to make formBuilder truly extensible for custom fields a new plugin named Formeo was created instead. The syntax described above is pretty much the same except
The above meta config would place password in the editor's common fields, describe the icon it would use in the editor and set a baseID for the field to be reference by the editor. This is all still being documented and will be posted over on the Formeo repo. |
Thanks Kevin. |
@kevinchappell by when we can expect some docs to use it as we want to use this in our upcoming project. If possible our team can also contribute to your development. |
There is already some basic (really basic) documentation here but there will be a fair bit more posted early the next week. |
did this ever get implemented? I would really like to add some database driven fields to the builder like type ahead and textboexs which lookup values once a form value is set |
I ended up writing something myself to integrate with Db elements in my own system. It works really well; although this probably isn't the answer you wanted. |
Hi kevin.. |
@karthikn7 there is lots of info in the docs |
Hi ,
|
How to create custom id of html controls rightnow its generating random id such as |
on drag the field from right side panel to left side container , remove the particular field which i drag from right side panel. Please help me to do this |
i need to add the custom attributes to both sides fields, for example , fields: [ <input type="email" class="form-control" name="text-1518152971932-preview" pattern="form-control" id="text-1518152971932-preview" fieldType="field1"> and final formbuilder json like [ |
Het Kevin,
I was trying to add some custom fields in one of my project, for doing so i have to edit form-builder.js
What i was expecting if can extend custom fields in a separate file,so that i can update library in the next release.
Is there any way to do so..?
The text was updated successfully, but these errors were encountered: