I have a dropdown that’s being populated with custom post type data, base on a variation of this code: https://docs.gravityforms.com/dynamically-populating-drop-down-or-radio-buttons-fields/
In our particular case this would result in a dropdown with 1000+ options so we’d ideally be able to provide the user with the ability to search within the dropdown via the “enhanced user interface” option in the field settings.
The issue I’m running into is that I cannot figure out how to attach addition information to each dropdown option, which we want to use to copy data to relevant fields after the user has made a selection.
Anyway, to be specific in this section of the snippet I’m wondering how I can define data attributes?
$choices = array( 'text' => $post->post_title, 'value' => $post->ID );
Thank you in advance!