Skip to content

Accordion or collapse #800

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

Closed
thedevdavid opened this issue Nov 7, 2016 · 2 comments
Closed

Accordion or collapse #800

thedevdavid opened this issue Nov 7, 2016 · 2 comments

Comments

@thedevdavid
Copy link

Enhancement

As a developer, I want to be able to hide/show some fields of my form by using collapse or accordion. I tried it in this way: I created a checkbox and styled it to look like a button. And using condition to hide/show fields.

Expected behaviour

I expected it to work.

Actual behaviour

It actually validating the checkbox. And if it's in false, the form doesn't care about the hidden elements. But if the checkbox is true, it validates.

I want to find some way or use something to hide/show fields and validate the hidden fields too.

Can anybody help me how can I use something like a bootstrap collapse/accordion?

@json-schema-form/angular-schema-form-lead

@Anthropic
Copy link
Member

Anthropic commented Nov 10, 2016

Hi @DLevai94 try the code that @deyceg was awesome enough to share in #329
It is using UI Bootstrap's accordion, so you would need to include that too.
https://gist.github.com/deyceg/6a3bfe870f258ef839b3aaf6b1c5a912

@mustafawani
Copy link

Can you please provide form schema for accordian

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

No branches or pull requests

3 participants