WormBaby
10-26-2005, 01:09 AM
I think it would be cool to have the form layout changeable for each form in the Form Builder plugin. Since this isn't a current option I just changed a few things to get the layout of the FIELD NAME, FIELD LABEL, and FIELD TYPE to be are all on their own table rows. Then added some breaks and a horizontal line between each item.
The result looks like:
What is your Name? <-- FIELD NAME
(type your first name only) <-- FIELD LABEL
|___user_input_text_box___| <-- FIELD TYPE
___________________________________
How I did it. Open the formbuilder.php file and edit the following lines of code to:
Lines 254 to 257
254 echo '<tr>
255 <td>' . $field['name'] . '</td></tr>
256 <tr><td><i>' . $field['label'] . '</i></td></tr>
257 <tr><td>';
Lines 289 to 293
289 echo ' </td></tr>
290 <tr><td>
291 <br><hr><br>
292 </td>
293 </tr>';
It would be nice if there was an option to choose different layouts for each form in a future version of Form Builder. Till that day I'm cool with this.
The result looks like:
What is your Name? <-- FIELD NAME
(type your first name only) <-- FIELD LABEL
|___user_input_text_box___| <-- FIELD TYPE
___________________________________
How I did it. Open the formbuilder.php file and edit the following lines of code to:
Lines 254 to 257
254 echo '<tr>
255 <td>' . $field['name'] . '</td></tr>
256 <tr><td><i>' . $field['label'] . '</i></td></tr>
257 <tr><td>';
Lines 289 to 293
289 echo ' </td></tr>
290 <tr><td>
291 <br><hr><br>
292 </td>
293 </tr>';
It would be nice if there was an option to choose different layouts for each form in a future version of Form Builder. Till that day I'm cool with this.