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

move components

Open ranjanitechleaf opened this issue 7 years ago • 7 comments

Hi

  1. I need to move the advanced component fields to basic components, is this possible?
  2. And also i need the custom component with column layout, if have any example code , please provide.

Thanks

ranjanitechleaf avatar May 22 '19 05:05 ranjanitechleaf

Here is an example of how to customize the builder.

http://formio.github.io/formio.js/app/examples/custombuilder.html

You can either list them specifically like customBasic or set "group" on the component to "basic".

Here is an example of a custom component: https://github.com/formio/react-app-starterkit/blob/master/src/components/CheckMatrix.js

randallknutson avatar May 22 '19 14:05 randallknutson

Hi By refering this ( https://github.com/formio/react-app-starterkit/blob/master/src/components/CheckMatrix.js) . i have created custom component, but while trying to view that created component it shows 'Unknown component: checkmatrix'.

can you help to fix this.

ranjanitechleaf avatar May 24 '19 05:05 ranjanitechleaf

The component needs to be added to the renderer using the

Components.addComponent('checkmatrix', CheckMatrixComponent);

travist avatar May 24 '19 14:05 travist

Hi i already added this 'Components.addComponent('checkmatrix', CheckMatrixComponent);', but still i got the error 'Unknown component: checkmatrix'.

ranjanitechleaf avatar May 25 '19 04:05 ranjanitechleaf

Sometimes this can happen if the renderer is pulled from a different copy of formio.js than the one you are adding the component to. Can you check if this is the case?

randallknutson avatar May 28 '19 15:05 randallknutson

I have done my custom component by using the example 'custom form builder'. Thanks for your reply.

ranjanitechleaf avatar May 29 '19 04:05 ranjanitechleaf

@ranjanitechleaf I am also trying to create a custom component, and I want that field to be properly validated, May I know how the validation is need to be done?

Anandks1993 avatar Jan 11 '21 02:01 Anandks1993