Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to hide a field? #43

Closed
chmac opened this issue Mar 3, 2016 · 4 comments
Closed

Option to hide a field? #43

chmac opened this issue Mar 3, 2016 · 4 comments
Labels

Comments

@chmac
Copy link

chmac commented Mar 3, 2016

Is there an option we can pass to the ui schema that would result in a field being hidden?

@almet
Copy link
Contributor

almet commented Mar 3, 2016

that's currently not implemented, but if you're willing to add one, don't hesitate!

@n1k0
Copy link
Collaborator

n1k0 commented Mar 3, 2016

We should definitely add support for hidden fields (with static value). @chmac, would you want to start working on this?

@chmac
Copy link
Author

chmac commented Mar 3, 2016

@n1k0 :-) If you can point me in the right direction I'm happy to have a look, but we're using this package inside meteor which makes developing on it a little tricky. I'm not exactly sure where my node_modules/ folder is to start messing with the source while the code is running...

@n1k0
Copy link
Collaborator

n1k0 commented Mar 3, 2016

You should definitely clone this repo and work using the existing unit and DOM integration test suites available.

Basically the idea here would be to create a new kind of widget, eg. HiddenWidget which would simply hold the associated formData value it's attached to. Also we should add support for using it to override default widget used to render a given field using the uiSchema object and a hidden widget value for that field.

If that sounds super complicated no big deal, you can either try or we'll take care of it. But if you want to work on this I'll provide guidance so you're not alone :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants