-
Notifications
You must be signed in to change notification settings - Fork 625
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
Allow only_if to accept a conditional attribute #1399
Comments
This is a great idea. At present our sections are bloated with options due to the lack of this feature. Consider another example, which would benefit hugely from @patternpoints' suggestion:
|
For support of the current syntax of the only_if filter, it could either take a string (the id of the boolean field) or the hash. It would be cool, if the filter would actually also accept an array of hashes. And I guess, the hash would need to have named keys. Something like this:
|
This obstacle can now be overcome using CSS4's recently released We've been using CSS in our Section settings for a while now for styling fonts, colours, etc - to keep the Back Office Editor in line with our branding. The We can achieve conditional displays like the following example: Sections Settings:
Hope this helps others! |
Feature request:
It would enable us to create more complex but yet clean section forms if we had an only_if filter that checks for true / false statements additionally to boolean values.
Right now, visibility is true when there is no only_if setting or the related boolean field is true. Maybe you could add a third case in which the param is a hash and the seleted option equals the condition.
We could show or hide input fields dependent on user choices, e.g. a value of a select option or a radiobutton option chosen.
The text was updated successfully, but these errors were encountered: