I would like to populate a custom select field added to a channel, with a list of members that have a certain selection from a custom member field.
To generate the list of members currently in PHP, I get the id of the particular member field, then search the members list for a match on this field. And I have tried to inject this list to the custom select field via javascript, but on form post the validation fails with 'Invalid Selection', as the injected options are not accepted as valid against that field.
Is there a way to populate the custom select field with a list of members selected on a value of a custom member field?