Customize the rendering of a choice/entity field in Symfony2
问题 I would like a <select> element to be rendered with additional data on its <option> s. For the sake of example, I'd like to have a service-selector (non-multiple entity-field) that resets another inputs value upon selection change. I'm not interested in using JS data-structures, I need to have the rendered field to look as follows: <select name="..."> <option value="1" data-price="90">Service 1</option> <option value="2" data-price="40">Service 2</option> </select> I would take two different