Here's what I'm trying to accomplish:
Users are registering for an event, they can register as a Team or Individual.
When registering on a team I need to be able to show a list of Teams already entered, or the option to create a new team if it's not in the list already.
I've read the posts on how to dynamically populate a drop down field. I can populate by hardcoding the array.. so I've got that far. But how can I perform a query on entries for the form and grab distinct team names to populate this list with? Is there get_entries functions similar to retrieving posts functions?
Another question, I currently have to use two fields to do this setup.. one for the drop down to select existing teams.. and a text field if a new team is to be added. Is there any way to have both of these form fields point to the same field when they're submitted? ie. one or the other, not both.
Hope this makes sense.