I’m working on a custom module that will display a custom post type for a client. I want to provide the client with 2 fields…the first should allow them to choose only 1 post while the second field should allow them to choose 5 posts. They can choose less than 5 but not more than that.
Looking further at the suggest field I see that it’s a simple text field and it looks like the data is stored as a comma separated list. Is there a built in way to limit the number of items that can be selected?