{% embed molecule('registration-portal-autocomplete','RegistrationPortal') with { data:{ id: 'selected_account_id', name:'selected_account_id', }, embed:{ form: data.form }, modifiers: ['overlap'], attributes: { 'suggestion-url': path('/dealer/user/search'), 'suggested-item-class-name': 'customer-list__container-item', 'value-data-attribute': 'data-value', 'selected-value-key': 'accountNumber', 'show-clean-button': false, 'item-class-name': 'customer-list__container-item', }, } only %} {% block input %} {{ form_widget(embed.form.accountName, {'attr':{'autocomplete':'off','class': 'registration-portal-autocomplete__input js-registration-portal-autocomplete__input'} }) }} {{ form_widget(embed.form.accountNumber, {'attr':{'class': 'registration-portal-autocomplete__input-hidden js-registration-portal-autocomplete__input-hidden'} }) }} {% endblock %} {% endembed %}