Hi,
Is it possible to show/hide panel view buttons conditionaly?
I can’t seem to get it working, tried all kind of syntaxes.
Probably the when-clause does not work with panel view buttons?
Would php-blueprint work?
Thanks in advance for any feedback!
buttons:
accept:
icon: check
text: Accept Invitation
link: "{{ page.url }}/accept-relationship"
when:
relationship_status: pending
No, when is for fields or sections only
texnixe
January 26, 2026, 12:09pm
3
I think there are options around this, like not hide the button but return a “already done” message if the button is not supposed to do anything.
Or register the button in a plugin and find a way to show/hide it depending on a condition.
Hey Sonja, thanks for your ideas!
I think a plugin ultimately works best. The other option you provided is indeed a possible smart solution.
When I’ve concluded my solution i will post it here.
Thanks again.
Mark