mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #03350
Re: [Bug 771154] Re: pieform: "for" attribute of lable does not handle the form id
Here is my code. I use it for a module I am working on.
$result = array(
'name' => 'av'.$id,
'renderer' => 'oneline',
'successcallback' => 'archiveview_submit',
'elements' => array(
'viewid' => array('type' => 'hidden', 'value' => $id),
'note' => array(
'type' => 'text',
'title' => get_string('note', 'artefact.version'),
//'rules' => array( 'required' => true ),
),
'submit' => array(
'type' => 'submit',
'class' => 'quiet',
'name' => 'archive_submit',
'value' => get_string('Archive', 'artefact.version'),
//'confirm' => get_string('confirmdelete',
'artefact.version'),
),
),
);
$result = pieform($result);
Output
<form class="pieform"name="av196"method="post"action=""id="av196">
<div><span id="av196_note_container"class="text"><label *for**="note"*>Note</label><input type="text"class="text"*id=**"av196_note"* name="note"tabindex="1"value="">
Le 27.04.2011 02:59, Richard Mansfield a écrit :
> Hi Laurent,
>
> Could you give an example of a label that has the incorrect id in the
> for attribute? I can't seem to reproduce this.
>
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/771154
Title:
pieform: "for" attribute of lable does not handle the form id
Status in Mahara ePortfolio:
Incomplete
Bug description:
Create a pieform with a specific name
add a text box with a lable
the text box id is formname_textboxname
the label "for" attribute is textboxname instead of formname_textboxname
References