Hi Jason
I'm making a new form, similar to the one in the attached screenshot.
People have to fill in all of the information, but I'm not sure how to go about creating this. I'd appreciate input.
Regards
David
No screen shot attached...?
Ooops!
Side by side form fields are currently not available within the form creation tool of PHP F2E - You should be able to accomplish this using the custom field process.
Within the template:
{if $pg == 1}
HTML Form Fields as you have them here
{/if}
Naming each form field ie: name="x_input_name" name="x_input_name2"
Side by side form fields are currently not available within the form creation tool of PHP F2E - You should be able to accomplish this using the custom field process.
Within the template:
{if $pg == 1}
HTML Form Fields as you have them here
{/if}
Naming each form field ie: name="x_input_name" name="x_input_name2"
OK. Thanks, I'll give it a go.....
Regards
David
Within the template:
{if $pg == 1}
HTML Form Fields as you have them here
{/if}
Naming each form field ie: name="x_input_name" name="x_input_name2"
Hi again
I'm obviously missing something. I've assumed that as these are text fields, I have to change something in that part of the form. I am getting fields next to each other, but the questions are being duplicated in a strange way. I havn't figured out how to get rid of that, without getting rid of the text field formatting. Presumably, it has something to do with saying this is peculiar to this page only.
Below is my adaptation. Could you point me in the right direction, please? I have also attached a screen shot of the current output.
Thanks
David
<!----------- TEXT FORM FIELD ----------->
{if ($type[customs] == "text") }
<tr>
<td valign=top>
{$question[customs]}<br>
{$sub_text[customs]}
</td>
<td>
<input type="text" name="{$field_name[customs]}" size=35 value="{$default_value[customs]}">
</td>
</tr>
{/if}
{if $pg == 3 }
<tr>
<td>Example: <br /><br />to go (past simple)<br /><br />
{$question[customs]}<br>
{$sub_text[customs]}
</td>
<td><div align="center"><font size ="3"><b>Negative form</b></font><br /><br />He didn't go</div><br />
<input type="text" name="x_B_a1" size=35 value="{$default_value[customs]}">
</td>
<td><div align="center"><font size ="3"><b>Question form</b></font><br /><br />Did he go?</div><br /><input type="text" name="x_B_a2" size=35 value="{$default_value[customs]}">
</td>
</tr>
{/if}
Place it above where the loop starts or below for the form fields. That would be why its duplicating.
Place it above where the loop starts or below for the form fields. That would be why its duplicating.
Sorry, I'm probably being dense, but I've tried moving it with no real change. I'd appreciate more detaile. I'll attach the form. Maybe you can show me, as there are quite a number of these pages to create. Appreciate the help, as always.
Try the attached form. Let me know how it turns out. You'll need to rename it back to the orig. file name.
It works at first attempt. Thanks!
As these form fields are outside the loop, how can I make them compulsory? As you've realised this is an english assessment test for a language school to be able to assign potentioal students to the right level. As such, all questions have to be completed.
As always, Jason, great support!
David
It works at first attempt. Thanks!
To create other pages, use the same method and just rename the $pg number?
You got it!