Support Nested Forms (Forms in Forms)#849
Support Nested Forms (Forms in Forms)#849CurtisHumphrey wants to merge 1 commit intorjsf-team:masterfrom
Conversation
|
Ok, I'll fix those errors here in the next day or so. |
|
I don't really understand your use case, but even if a form within a form is bad, then certainly a form by itself should still be a |
|
Can you describe your usecase @CurtisHumphrey ? This seems like it could be closed. |
|
I have actually exactly the same use case. Our images are uploaded to a separate database, and only the image ID is saved to the document. I display a RJSF for updating the metadata for the images, so we have two nested Maybe we could render a |
|
I think you should be having a json-schema that has multiple levels instead of trying to have Forms and subforms. Seee for example the "Nested" demo in https://mozilla-services.github.io/react-jsonschema-form/ |
|
In the use case described here, the image meta data document is saved independently from the parent document, and the parent document contains only a reference ID to the image. So we can't just add the image schema as a property to the parent schema, because we want to save only the ID - not the whole image metadata document - to the parent document. |
|
I've re-put this on my list of ToDos for next week. Sorry for the delays. |
|
@CurtisHumphrey , I'm closing this PR -- if we were to implement this, it should definitely by default render a |
|
This was fixed by #1345! |
Reasons for making this change
This allows nested forms because a form in a form is bad DOM
Use case:
Checklist
npm run cs-formaton my branch to conform my code to prettier coding style