Basically I want to have entries with field types that provide links to either a category or an entry. I'm guessing such a fieldtype doesn't exist, so... I can use WB Category Select for selecting the category and whatever native or Playa for selecting an entry, but is there any way to toggle between them?
Like a radio fieldtype or something that will show/hide a set of fields?
E.g.
Choose a type of link and link itself [#n...]
- Category (clicking this reveals WB Category Select, hides the other)
- Entry (clicking this reveals single Entry selection, hides the other)
The above in repetition. Matrix/Grid isn't necessary, can manually make a bunch of repetitive fieldtypes.
Probably doesn't exist either, so any recommendation for an existing radio/switch/pill type and binding some javascript to it for the toggle functionality?
edit:
Props to Max & Tyler who recommended the Entry Type add-on. That was exactly what I needed. Have implemented it already, it's perfect.