formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Custom components

Open malichishti opened this issue 8 years ago • 14 comments

Hi,

I would like to know how can custom components be added to the Form builder e.g. if i want to add support for a Captcha Control or an Image upload control ?

Is there any example for this? I have seen this documentation but it looks incomplete.

Regards, Ali

malichishti avatar Jul 16 '18 01:07 malichishti

https://github.com/formio/examples.form.io/tree/master/custom-component

have a look here

AbhisheshPradhan avatar Jul 20 '18 00:07 AbhisheshPradhan

@AbhisheshPradhan that example is for Angular, i'm looking for formio.js

Also i'm more interested in Form Builder than Form Rendering at this point.

malichishti avatar Jul 20 '18 04:07 malichishti

@malichishti check this please http://formio.github.io/formio.js/app/examples/customcomponent.html

152hq avatar Jan 15 '19 22:01 152hq

Came across this while researching how to do custom formio component, and looks good, except for one annoying defect - the order of elements added to form doesn't get preserved.

For example, add an instance of the custom element and works fine, but add a second instance to the top of the form (above the first instance) and that second instance gets thrown to the bottom after saving.

Not sure where start in resolving that.

rod-o-walker avatar Sep 04 '19 16:09 rod-o-walker

Custom components have a weight property that determines the order.

randallknutson avatar Sep 04 '19 20:09 randallknutson

I understood that weight affected the order components show in the palette. The issue I'm referring to is the order in which component instances are showing in the build/render area.

Should have added screen-shot earlier: chrome_tcvMs329YD

Here I inserted the 2x2 component instance at the very top, but immediately after clicking save in the edit dialog, it gets moved to the very bottom, below the Submit button.

rod-o-walker avatar Sep 05 '19 13:09 rod-o-walker

Just noticed the screen-shot also shows another issue - the edit/copy/remove buttons for the custom component instances are always visible.

rod-o-walker avatar Sep 05 '19 14:09 rod-o-walker

@rod-o-walker We are unable to replicate this issue using the latest version of our 4x builder. Can you confirm you are on the latest ?

jeriah-formio avatar Sep 05 '19 20:09 jeriah-formio

Do we have any examples on creating the Custom Rating component?

dkolasani9 avatar Dec 24 '19 16:12 dkolasani9

We do not have a Custom Rating component, but we do have a survey component. Here is our documentation on this component: https://help.form.io/userguide/form-components/#survey-1

wag110894 avatar Dec 24 '19 16:12 wag110894

I need to create a custom rating(with the stars) component. Do we have any examples on creating a Custom component for rating?

dkolasani9 avatar Dec 24 '19 16:12 dkolasani9

We do not have a Custom Rating component, but we do have a survey component. Here is our documentation on this component: https://help.form.io/userguide/form-components/#survey-1

I know may be not available in Form.IO library. But Can I code to create a custom component and Is the communication possible between my component and formBuilder?

dkolasani9 avatar Dec 24 '19 17:12 dkolasani9

Here is our documentation on how to create custom components: https://formio.github.io/formio.js/app/examples/customcomponent.html

Hope that this helps.

wag110894 avatar Dec 24 '19 17:12 wag110894

customTextArea

Can someone have any idea about it i and using it in angular application and this popup contains custom component

shahzadiiui2015 avatar Nov 22 '21 16:11 shahzadiiui2015