Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Use of <label> in  form.php
Avatar
jtaubman #1
Member since Oct 2006 · 15 posts
Group memberships: Members
Show profile · Link to this post
Subject: Use of <label> in  form.php
I have been using the Bureaucracy plugin to create forms and am having problems with my template, because as far as I can see the standard Dokuwiki  form field creation (form.php) wraps the "label" around the input field.

My reading of WC3 suggests that it should be

<label>My Label</label><input name="myfield/>
not
<label>My Label<input name="myfield/></label>
Avatar
Michitux #2
Member since Apr 2008 · 377 posts · Location: Karlsruhe, Germany
Group memberships: Members, Wiki Managers
Show profile · Link to this post
Have you seen the tip on that site?

Tip: A label can be bound to an element either by using the "for" attribute, or by placing the element inside the <label> element.

Why is this a problem for you?
Did you like my help or work for DokuWiki (plugins)? Consider giving something back.
Avatar
jtaubman #3
Member since Oct 2006 · 15 posts
Group memberships: Members
Show profile · Link to this post
Using the Bootstrap template,  it renders very strangely and the label fields overlay the previous input fields so that you can't drop down dropdown lists on forms.  As the label "jumps" you into the next field.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-07-23, 13:43:00 (UTC +02:00)