Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Get form field type


Go to End


886 Views

Avatar
Martin256

Community Member, 1 Post

16 October 2016 at 9:39pm

Edited: 16/10/2016 9:41pm

Hello!
In template Form using

<% loop $Fields %>
      <input id="$ID" type="$Type" name="$Name" <% if $Required %>required="required"<% end_if %> class="reg-input" placeholder="$Title" value="$Value">
<% end_loop %>

And I get
<input id="MemberLoginForm_LoginForm_Password" type="text password" name="Password" required="required" class="reg-input" placeholder="Пароль" value="">

Incorrect type="text password", how get right type?