Append data-attributes to dropdown options

You can include the extra data using a custom key in the choice array. That will make it available to the methods used to generate field markup. You would then use the gform_field_choice_markup_pre_render filter to access that custom key and add the data attribute to the choice markup.

1 Like