I understand that when you are overriding FOSUser Bundle Forms, you follow this structure;
{{ form_widget(form.plainPassword.first, { 'attr': {'class': 'myformclass'} }) }}
I also want to add PlaceHolder option to my form element.. How can i do that?
so it will look like something like this;
<input class="myformclass" placeholder="Password" type="password" id="password" name="_password" required="required" />
You can use the placeholder attribute.
METHOD 1: Twig
METHOD 2: Form Builder
Field name depends on your form name
it will like be named this for fosuser bundle register form
the id will be
You can override "id" like written in my example
Required and name options are defined in the form class