Cross Blueprint Field conditions #10756
-
Hi, I only found "root." in the documentation, but I cannot leave the blueprint with that (my understanding). Is this scenario even possible without writing php code? I imagine there might be a way through an addon? Maybe somebody can shine a light on this scenario. fyi I am using react/astro, if that is relevant. Thank you for pointing me in the right direction! :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You need to create a custom condition for this. Which needs custom JS and PHP I'm afraid. |
Beta Was this translation helpful? Give feedback.
In the
boot
method of your Service Provider you could do something like this:Then in cp.js:
And then in your fieldset yaml:
https://statamic.dev/conditional-fields#custom-logic