Skip to main content
Tweeted twitter.com/StackDrupal/status/1097556545548759046
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
edited tags; made the question clearer
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

How do I add an autocomplete field in a class whothat extends FormBase FormBase?

I created a custom module, in the custom module there iswhich uses a "Form" file (a class whothat extends FormBase) In the form file,FormBase. I want to programmatically create programmaticaly a form element like a entity reference field (an autocomplete users list of the site)

How can I do that ? I search inautocompletes the core,username from the user registered in the web..site.but I don't find how do that

How add an autocomplete field in a class who extends FormBase ?

I created a custom module, in the custom module there is a "Form" file (a class who extends FormBase) In the form file, I want create programmaticaly a form element like a entity reference field (an autocomplete users list of the site)

How can I do that ? I search in the core, in the web...but I don't find how do that

How do I add an autocomplete field in a class that extends FormBase?

I created a custom module, which uses a class that extends FormBase. I want to programmatically create a form field that autocompletes the username from the user registered in the site.

Source Link
spacecodeur
  • 1.3k
  • 3
  • 32
  • 55

Add a "autocomplete" field in a buildForm

How add an autocomplete field in a class who extends FormBase ?

I created a custom module, in the custom module there is a "Form" file (a class who extends FormBase) In the form file, I want create programmaticaly a form element like a entity reference field (an autocomplete users list of the site)

How can I do that ? I search in the core, in the web...but I don't find how do that