How to pass data of a configurable form into the options of a dropdown element?