Giter Club home page Giter Club logo

react-form-generator's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-form-generator's Issues

cannot use / override InputField's ref

First off, thanks for the great effort on this repo, makes the transition to react-native much easier!

I am trying to implement focus next field functionality in my forms but can't since i'm trying to the set the focus of the next input my using the this.refs property.

this module uses the generic fieldComponent ref.
may I suggest setting the default ref only if it's not passed as a prop?
I will be happy to contribute and submit a PR.
thanks!

Getting Uncaught TypeError: r.interopRequireDefault is not a function

When trying to use form generator in react file, I am getting the following error.

FormGenerator.js:7 Uncaught TypeError: r.interopRequireDefault is not a function
at Object../node_modules/form-generator-react/dist/FormGenerator.js.r.157.../util/babelHelpers.js

I am using react version 15.6.1

howto collection formfield?

How could I create a selectbox/dropdown which get's its values from a service?
PS: I use this project with Meteor

js warning

warning.js:44 Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of FlatField. See https://fb.me/react-warning-keys for more information.

My schema:

FormGenerator.create({
                    stringField: {
                      type: String,
                      className: "form-control",
                      label: 'String Field',
                      defaultValue: 'Welp',
                      validators: [
                          FormGenerator.validators.minLength(1),
                          FormGenerator.validators.maxLength(10),
                          function(val) {
                            if (val.toLowerCase().indexOf('welp') === -1) {
                              return 'Error: input must contain "welp"';
                            }
                          }
                      ],
                      isRequired: true
                    },
                }, 'form', this.onSubmit)

The fix is to add key: name in the flat field generation parts for textfield, select, etc..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.