React-jsonschema-form: Unable to disable the Submit Button

Created on 28 Sep 2017  路  6Comments  路  Source: rjsf-team/react-jsonschema-form

I want to be able to to not have a submit input show up even and just handle my form using the onchange handler.

However, if one isn't provided a default one is placed on the screen , which can not be removed and whose location can not be controlled.

Is there a way to disable the submit button from appearing ?

Prerequisites

  • [x ] I have read the documentation;
  • [x ] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.

Description

[Description of the bug or feature]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Ideally, I'm providing a sample JSFiddle or a shared playground link demonstrating the issue.

Expected behavior

[What you expected to happen]

Actual behavior

[What actually happened]

Version

You can usually get this information in your package.json or in the file URL if you're using the unpkg one.

Most helpful comment

This isn't documented, but it seems that you can pass a children prop to the Form instance, which will show in place of the submit button.

All 6 comments

This isn't documented, but it seems that you can pass a children prop to the Form instance, which will show in place of the submit button.

This isn't documented, but it seems that you can pass a children prop to the Form instance, which will show in place of the submit button.

Hi, I am not able to use children to replace submit button
<Form schema={this.state.schema as any} formData={this.state.formData.properties.desired} children={<br/>} />
Can you help taking a look if I am doing it wrong?

@YingXue, it is hard to help without an example to look at.

@YingXue I'm doing this exactly as the documentation describes and it's working: https://github.com/mozilla-services/react-jsonschema-form#form-action-buttons

Here's an example https://jsfiddle.net/ermLcpd4/

This isn't documented, but it seems that you can pass a children prop to the Form instance, which will show in place of the submit button.

Hi, I am not able to use children to replace submit button
<Form schema={this.state.schema as any} formData={this.state.formData.properties.desired} children={<br/>} />
Can you help taking a look if I am doing it wrong?

instead of linebreak just give ' ' one spcae between quotes , worked for me to hide Submit button with space

<Form>
  <Fragment />
</Form>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

sstarrAtmeta picture sstarrAtmeta  路  3Comments

elyobo picture elyobo  路  3Comments

n1k0 picture n1k0  路  3Comments

mfulton26 picture mfulton26  路  3Comments

ebower12 picture ebower12  路  3Comments