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.

Form Questions

Custom Forms Templates Under 2.4


Reply

4 Posts   1049 Views

Avatar
zenmonkey

10 August 2010 at 6:34am Community Member, 528 Posts

Has the Method for using Custom form templates changed under 2.4

I'm trying to create a form using HTML5 input types. In my Custom form I use the following code

<label for="{$FormName}_Email">Email</label>
<input type="email" value="" name="Email" id="{$FormName}_Email" class="text">

However the form doesn't accept the input unless the input is generated using $dataFieldByName(Email)

Any Ideas?

Avatar
Willr

10 August 2010 at 2:20pm Forum Moderator, 5511 Posts

Is there any difference between the html generated in $dataFieldByName and the html outputted from yours?

Avatar
zenmonkey

13 August 2010 at 1:26am Community Member, 528 Posts

Other then SS changing the attribute order I don;t see a difference

SS generated input
<input type="text" value="" name="Email" id="BVRegistrationForm_BVRegistrationPage_Email" class="text">

my code:
<input type="email" value="" name="Email" id="{$FormName}_Email" class="text">

Input generated from my code
<input type="email" class="text" id="BVRegistrationForm_BVRegistrationPage_Email" name="Email" value="">

Avatar
zenmonkey

27 August 2010 at 4:01am Community Member, 528 Posts

I have noticed this bug only presents itself under 2.4.1. 2.4.0 seems to work as expected. I've added a ticket