From 5c318bcf6e7e0d1b94ea9d3a9ca6fbc0da9972a6 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Thu, 9 Jan 2025 16:58:33 +0000 Subject: [PATCH] Custom field conditions don't work outside of the Control Panel Related: statamic/cms#11306 --- content/collections/docs/conditional-fields.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/collections/docs/conditional-fields.md b/content/collections/docs/conditional-fields.md index df5ac3cca..6964d16b2 100644 --- a/content/collections/docs/conditional-fields.md +++ b/content/collections/docs/conditional-fields.md @@ -236,6 +236,10 @@ Statamic.$conditions.add('isCanadian', ({ target }) => { }); ``` +:::warning +It's worth noting that custom conditions only work in the Control Panel, not in the context of frontend forms. +::: + ### Parameters You may also pass parameters to your custom functions: