React-jsonschema-form: Hidden Does Not Hide Array Field

Created on 27 Jun 2016  路  3Comments  路  Source: rjsf-team/react-jsonschema-form

Prerequisites

I have seen this behavior in my application and was able to replicate in the playground

Description

I am attempting to control the display/lack of of Array fields with no success. Adding a "ui:widget" : "hidden" to a field of type array does not hide the field. It does, however, hide the title if there is any.

Steps to Reproduce

  1. Playground -> Array
  2. Add "ui:widget" : "hidden" to the UISchema directive

    Expected behavior

I was expecting the field to disappear however it doesn't

Actual behavior

The title is the only thing that seems to go away

Version

I am using 0.33.3

All 3 comments

Docs say:

Hiding widgets is only supported for boolean, string, number and integer schema types;

Closing. Please reopen with a PR if you plan to work on implementing this feature :)

Is there a work around to eliminate a string from my uischema?
I want the ui elements to not be shown.
I don't need the data either.
Thanks.

similar use case, we just need to specify an empty list and so it makes no sense for the user to have to see it on the form

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mfulton26 picture mfulton26  路  3Comments

videni picture videni  路  3Comments

FBurner picture FBurner  路  3Comments

ebower12 picture ebower12  路  3Comments

anttivikman picture anttivikman  路  3Comments