statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
32 stars 1 forks source link

Pass current entry data to dictionary options method #1203

Open godismyjudge95 opened 3 months ago

godismyjudge95 commented 3 months ago

Would be neat if the dictionaries feature could have current entry data passed to the options method.

This would allow one to filter the options by other field values in addition to the search. Example would be:

Have a "State" dictionary where the user can select from US States. Then have a "County" dictionary which is disabled/empty while a "State" is empty, but populates with the state's counties when a state is selected.

Could also be used to do category + sub category fields.