Skip to content

Commit

Permalink
Custom field conditions don't work outside of the Control Panel
Browse files Browse the repository at this point in the history
Related: statamic/cms#11306
  • Loading branch information
duncanmcclean committed Jan 9, 2025
1 parent 986739c commit 5c318bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/collections/docs/conditional-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5c318bc

Please sign in to comment.