Trouble with field-context #4691
Unanswered
jarnalyrkar
asked this question in
Troubleshooting
Replies: 1 comment
-
Rob had a look at it, and he says:
Surely there should be a way to target the current fields parent element, rather than whatever the root element is? In my particular case, the hero-element is always going to be at index 0, but that's more a coincidence than anything. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a fieldset with a replicator-field, and need to check a value outside it. I found this in the documentation: https://statamic.dev/conditional-fields#field-context, and from what I can gather I only need to prefix with a "root." in order to access to the other field.
I want to show or hide fields based on the toggle-field images_instead_of_heading_text, but it doesn't work. Any suggestions?
This is the yaml-file for my fieldset:
Beta Was this translation helpful? Give feedback.
All reactions