Skip to content

A story for hiding the submit button #1

@jonnyelliot

Description

@jonnyelliot

Just a suggestion as rjsf doesn't make it obvious.

I'm using the form inside my Wizard component like this:

<JSForm
    schema={modelParametersSchema}
    formData={modelParameters}
    onChange={(e) => {
      setModelParameters(e.formData)
      setModelParametersComplete(e.errors.length === 0)
    }}
    liveValidate
  >
    <></>
</JSForm>     

The <></> is the only way to hide the submit button (see rjsf-team/react-jsonschema-form#1602 for discussion).

Maybe we could have a hideButton prop or hide it when onSubmit isn't provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions