Skip to content
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

Multi step Form and support for searchable multi select dropdown #15

Closed
lateshK opened this issue Sep 18, 2020 · 1 comment
Closed

Multi step Form and support for searchable multi select dropdown #15

lateshK opened this issue Sep 18, 2020 · 1 comment

Comments

@lateshK
Copy link

lateshK commented Sep 18, 2020

Hi,

  1. There is support for multi step form, like sign up forms where on each form user enters info and click next to display step
  2. Support of searchable multi select drop down like (react-select)
@lateshK lateshK changed the title Multi step Form Multi step Form and support for searchable multi select dropdown Sep 18, 2020
@mikechabot
Copy link
Owner

mikechabot commented Sep 21, 2020

The multiform is not necessarily supported out-of-the-box, but you could add an onUpdate callback to the form itself, and then update local state to keep track of whether the necessary data was set in the form to allow the "next" button.

It'd be interesting to think about adding a button type to the available FormItems so you could write conditions around it.

<Form
  instance={instance}
  onUpdate={(id, value) => {
     // Update local state to detect whether the 
     // form has been updated with the necessary data
     // to render the "Next" button
  }}
  onSubmit={(hasError) => {}}
/>

{doShowNextButton && <button>Next</button>}

And I think the searchable dropdown would be pretty interesting. I created #16 as an enhancement for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants