-
Notifications
You must be signed in to change notification settings - Fork 635
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
Conditional fields and tabs #10300
Conditional fields and tabs #10300
Conversation
@mmikkel Both good suggestions. Can definitely do an empty/not-empty relational field condition rule. |
Just added an operator menu to relational field conditions, with the options “has a value”, “is empty”, and “is related to”. The first two are available in all contexts; “is related to” is only available for conditions that don’t need to be stored in the project config (so… element index filters). |
Annnnd now layout elements with conditions get a special border: |
That is awesome 👏 Thank you! |
I've not been able to install this yet, so apologies for asking what may be obvious, but I'm thinking ahead to a future project I have coming up. With this solution is it possible to show/hide fields based on file type? For example: if it's an image asset show "Alt Text", but if it's a PDF don't? Edit: Noticed this comment which implies it's possible #10302 (reply in thread) |
Yep! |
Description
The field layout designer has been updated to open tab and layout element settings in slideouts, which now include two new settings:
Edit Entry pages will show/hide tabs and fields as edits are being made, thanks to draft autosaves. Other forms will only factor in the conditions when they are first rendered.
Related issues