Set a form field as read only or disabled in Drupal 8
Riadh Rahmi
Senior Web Developer (Drupal & Laravel)
I am a senior web developer, I have experience in planning and developing large scale dynamic web applications especially in Drupal and Laravel.
Comments
Where do I write the code
Yes in hook_form_alter or in…
Yes in hook_form_alter or in buildForm() if you want to create custom form.