Documentation for Joomla Extensions
How can I change the order of fields on the form?
Answer
Changing the order of fields on the form is not currently supported. We cannot provide support once the code is editted. Be sure to save a backup copy before making any changes.
If you are familiar with editing code; however, it can be easily done by carefully editting the file components/com_donate/donate.html.php. In that file you'll see the function responsible for rendering the form. In this example, we'll move the "First Name" field below "Last Name"
The code, as its distributed looks like this:<tr>
<td align="right"><label for="firstname"><?php echo _CD_FORM_FNAME; ?></label></td>
<td align="left"><input type="text" size="30" maxlength="255" name="firstname" id="firstname" />
<span class="required">*</span></td>
</tr>
<tr>
<td align="right"><label for="lastname"><?php echo _CD_FORM_LNAME; ?></label></td>
<td align="left"><input type="text" size="30" maxlength="255" name="lastname" id="lastname" />
<span class="required">*</span></td>
</tr>
To move a field, simply cut and paste the table row containing that field where you'd like it displayed.
<tr>
<td align="right"><label for="lastname"><?php echo _CD_FORM_LNAME; ?></label></td>
<td align="left"><input type="text" size="30" maxlength="255" name="lastname" id="lastname" />
<span class="required">*</span></td>
</tr>
<tr>
<td align="right"><label for="firstname"><?php echo _CD_FORM_FNAME; ?></label></td>
<td align="left"><input type="text" size="30" maxlength="255" name="firstname" id="firstname" />
<span class="required">*</span></td>
</tr>





