rjsf-team/react-jsonschema-form

Feature Request: Ability to conditionally show non-required fields

Open

#2,164 opened on 2020年12月10日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)TypeScript (2,136 forks)batch import
corefeaturehelp wanted

Repository metrics

Stars
 (13,175 stars)
PR merge metrics
 (平均マージ 3d 17h) (30d で 32 merged PRs)

説明

Prerequisites

Description

In a schema with many required and optional fields, it would be handy to be able to conditionally only show required fields, especially if few users ever need them.

<Form
    requiredOnly={true}

Even better would be the ability to filter fields using an arbitrary function, for example:

<Form
    filter={field => field.isRequired && field.description.includes("test")}

But that might be going overboard. Thanks for considering!

コントリビューターガイド