Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to use field policies to show/hide fields in a UI? - Ash Framework
AF
Ash Framework
โข
9mo ago
โข
8 replies
Chaz Watkins
How to use field policies to show/hide fields in a UI?
I am diving into field policies to make some data available for certain subscription plans
. When the field returns
%ForbiddenField{}
%ForbiddenField{}
, Phoenix HTML doesn
't know how to deal with it
.
What
's the best practice for doing this in the UI
? The only thing I can think of is to use
is_struct(resource.field, Ash.ForbiddenField
is_struct(resource.field, Ash.ForbiddenField
everywhere
.
Ash Framework
Join
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
2,193
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to use arguments in policies
AF
Ash Framework / support
4y ago
When to use validations or policies
AF
Ash Framework / support
4y ago
How can show calculate as fields object in Swaggerui
AF
Ash Framework / support
7mo ago
How to test policies correctly?
AF
Ash Framework / support
7mo ago