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 ?
[Description of the bug or feature]
Ideally, I'm providing a sample JSFiddle or a shared playground link demonstrating the issue.
[What you expected to happen]
[What actually happened]
You can usually get this information in your package.json or in the file URL if you're using the unpkg one.
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
childrenprop to theForminstance, 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
childrenprop to theForminstance, 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>
Most helpful comment
This isn't documented, but it seems that you can pass a
childrenprop to theForminstance, which will show in place of the submit button.