waffl
1
I was wondering if there’s a way to show a select
based on the number of files in a field like so:
files:
type: files
display:
type: select
when: files.count > 1
options:
inline: Inline
gallery: Gallery
I was wondering if I am doing this wrong or if it just isn’t possible?
texnixe
2
No, that’s not possible. You can only use conditional fields with actual values in other fields like described in the docs. There are, however, several requests to extend such conditions in the ideas repo you might want to upvote.
Another option is a custom Panel field.
1 Like
waffl
3
texnixe
4
Yes, extending the select field in this case.