I know I can use one of blocks(block__findform_after_person_id_row, block__findform_xxx_widget, findform_after__widget, etc.) available to output the html code for the button , but I couldn't find a ideal block for that because layout looks ugly. Currently I have a block defined in fields.ini looks like this in html code:
- Code: Select all
<tr id="person_id_findform_row">
<td align="right" valign="top" class="Dataface_QuickForm-label-cell Dataface_FindForm-label-cell">
<div id="findform_people-person_id-label-wrapper" class="field">
<label>Locator#</label>
</div>
</td>
<td class="Dataface_QuickForm-widget-cell Dataface_FindForm-widget-cell">
<div id="people-person_id-wrapper" class="field">
<div>
<input type="text" value="2728" name="-findq:person_id" id="person_id" class="default">
</div>
<div class="formHelp"></div>
</div>
</td>
</tr>
What I want to do is add a button as a separate row or the 2nd table cell next to the 'Find' button' in the form, just like the following:
- Code: Select all
<tr id="clearform_findform_row">
<td align="right" valign="top" class="Dataface_QuickForm-label-cell Dataface_FindForm-label-cell">
<div id="findform_people-clearform-label-wrapper" class="field">
<label>Clear all</label>
</div>
</td>
<td class="Dataface_QuickForm-widget-cell Dataface_FindForm-widget-cell">
<div id="people-clearform-wrapper" class="field">
<div>
<input type="button" value="Clear Form" name="-findq:clearform" id="clearform" class="default" onclick="resetForm(this.form);">
</div>
<div class="formHelp"></div>
</div>
</td>
</tr>
How can I do that?