Formio from React Repository

MIT License

27 Sep 2022

Yolijn

JSON powered forms for React.js

Forked On 26 Sep 2022 at 01:33:28

Amirhsobhi

updated props in formBuilder
Merged On 24 Sep 2022 at 12:29:45

Amirhsobhi

Commented On 24 Sep 2022 at 12:29:45
Issue Comment

Jbaikge

updated props in formBuilder
Forked On 21 Sep 2022 at 10:32:13

Jbaikge

This PR addresses the missing onChange prop on the FormBuilder definition - which is useful for setting up a controlled component

Commented On 21 Sep 2022 at 10:32:13

Zerozoo-a

started

Started On 21 Sep 2022 at 01:06:40

Valbermarcelino

started

Started On 21 Sep 2022 at 01:23:26

Geraldkailu

JSON powered forms for React.js

Forked On 10 Sep 2022 at 12:12:24

Geraldkailu

started

Started On 10 Sep 2022 at 12:12:20
Issue Comment

Travist

[BUG] Form does not change language when options change

Environment

Please provide as many details as you can:

  • Hosting type
    • [] Form.io
    • [x] Local deployment
      • Version: Latest
  • Formio.js version: Latest
  • Frontend framework: React
  • Browser: Firefox latest
  • Browser version: latest

Steps to Reproduce

  1. Use React and Formio with i18next.
  2. Configure everything something like this:
 const options = {
    i18n: {
      [i18n.language]: i18n.getResourceBundle(i18n.language, 'translation'),
    },
    language: i18n.language,
    hooks: {},
  };

// https://help.form.io/developers/form-renderer#form-renderer-options
  return (
    <>
      <Form
        src={url}
        onSubmitDone={onSubmitDone}
        formReady={onFormReady}
        options={options}
      />
      {isReady ? null : <LoadingSpinner animation="border" />}
    </>
  ); 
  1. Change the language

Expected behavior

  • Language changes in the form

Kapture 2021-09-27 at 17 53 35

Observed behavior

  • Language does not change

Kapture 2021-09-27 at 17 56 29

This can be hack-fixed by amending Form.jsx , https://github.com/formio/react/blob/e9d61b0dc7ec45be966fd57b92c41e9b9f8483ab/src/components/Form.jsx#L62

 useEffect(() => {
    const { src } = props;
    if (src) {
      createWebformInstance(src).then(() => {
        if (formio) {
          formio.src = src;
        }
      });
      initializeFormio();
    }
  }, [props.src, props.options]); 

Forked On 02 Sep 2022 at 02:36:24

Travist

We added this for our Monday planning to get this prioritized. Thanks.

Commented On 02 Sep 2022 at 02:36:24

RomanLetsuk

FIO-4570: Fix issue with form redrawing when passing form object as props

Created On 02 Sep 2022 at 02:00:13
Create Branch
RomanLetsuk In formio/react Create Branchfix/form-redrawing-with-plain-object

RomanLetsuk

JSON powered forms for React.js

On 02 Sep 2022 at 01:59:25
Create Branch
Dependabot In formio/react Create Branchdependabot/npm_and_yarn/moment-timezone-0.5.37

Dependabot

JSON powered forms for React.js

On 30 Aug 2022 at 10:32:16

Dependabot

Bump moment-timezone from 0.5.34 to 0.5.37

Created On 30 Aug 2022 at 10:32:16

Ragunanthan

updated props in formBuilder

Created On 30 Aug 2022 at 07:43:13

Ragunanthan

JSON powered forms for React.js

Forked On 30 Aug 2022 at 07:42:12

Ragunanthan

onChange prop is not in the current version so I have updated it.

Created On 30 Aug 2022 at 07:40:31

Ragunanthan

started

Started On 30 Aug 2022 at 07:39:41

JinkwonHeo

started

Started On 29 Aug 2022 at 11:31:59

Jrussumbrella

started

Started On 29 Aug 2022 at 02:43:32

JinkwonHeo

started

Started On 28 Aug 2022 at 02:08:03

Bagasstrongman

JSON powered forms for React.js

Forked On 26 Aug 2022 at 01:15:33

ThePresence

JSON powered forms for React.js

Forked On 22 Aug 2022 at 05:45:36
Issue Comment

Ragunanthan

OnChange property not in the package what you can give to us FormBuilder [BUG]

OnChange property not in the package what you can give to us FormBuilder image

Package screenshot: image

Forked On 19 Aug 2022 at 07:28:18

Ragunanthan

I have solved the issue in the package, I have raised PR https://github.com/formio/react/pull/465. So closing the BUG.

Commented On 19 Aug 2022 at 07:28:18

About Repository

JSON powered forms for React.js
Language: JavaScript
Star: 212
Fork: 175
Watchers: 212
Open Issues: 151
https://github.com/formio/react
MIT License
Last updated: 21 Sep 2022
Tropics: