Page 1 of 1

Need help with the Template Layout of FormBuilder [Fixed]

Posted: Sun Dec 10, 2006 1:35 pm
by jongrant
Hi there,

Ive been trying to work out the latest release of FormBuilder and make a template for it that is a replica of my currently activated form (using a different script not within CMSMS). I know I stuffed up big with it cause I cant get any of the form inputs to display. The submit button seems to show however. This is the code I have for the template:

Code: Select all

{$hidden}
<table width="385" border="0" cellspacing="0" cellpadding="0" height="152" class="bodytext">
                <tr> 
                  <td width="107" height="15">Full Name:</td>
                  <td width="299" height="15"> 
                    {$full_name->input}
                  </td>
                </tr>
                <tr> 
                  <td width="107" height="15">Email Address:</td>
                  <td width="299" height="15"> 
                    {$email_address->input}
                  </td>
                </tr>
                <tr> 
                  <td width="107" height="15">Contact Phone:</td>
                  <td width="299" height="15"> 
                    {$contact_phone->input}
                  </td>
                </tr>
                <tr> 
                  <td width="107" height="15">Message:</td>
                  <td width="299" height="15"> 
                    {$message->input}
                  </td>
                </tr>
                <tr> 
                  <td width="107" height="29"></td>
                  <td width="299" height="29"> 
                    {$submit}
                  </td>
                </tr>
              </table>
In the text that was originially in the template as default, it says I could just call my inputs by inserting {$myfield->input} but when I do this, it just shows blank..

It is pretty late here at the moment, so maybe I am just missing the complete obvious, but does anyone know how I could get this working? I'm not really interested in using an array kind of setup cause the fields wont be changing in the future as this is a small basic contact form.

Hope someone can help with this. Thanks alot guys.

Jon

Re: Need help with the Template Layout of FormBuilder

Posted: Sun Dec 10, 2006 10:41 pm
by Dr.CSS
Could it have anything to do with your math, I've not done much with table based layouts but...

<table width="385"
              -
<td width="107"
            -
<td width="299"

            = - 21

Re: Need help with the Template Layout of FormBuilder

Posted: Mon Dec 11, 2006 3:12 am
by jongrant
Thanks Mark for your reply. It shouldnt have anything to do with the width of the table, but I have fixed that up now. My maths isnt too great, but yeh I just pulled it the code from Dreamweaver and have been editing that in CMSMS so all fixed now. The code I have is:

Code: Select all

{$hidden}
<table width="385" border="0" cellspacing="0" cellpadding="0" height="152" class="bodytext">
  <tr> 
                  <td width="107" height="15">Full Name:</td>
                  
    <td height="15"> {$full_name->input} </td>
                </tr>
                <tr> 
                  <td width="107" height="15">Email Address:</td>
                  
    <td height="15"> {$email_address->input} </td>
                </tr>
                <tr> 
                  <td width="107" height="15">Contact Phone:</td>
                  
    <td height="15"> {$contact_phone->input} </td>
                </tr>
                <tr> 
                  <td width="107" height="15">Message:</td>
                  
    <td height="15"> {$message->input} </td>
                </tr>
                <tr> 
                  <td width="107" height="29"></td>
                  
    <td height="29"> {$submit} </td>
                </tr>
              </table>
Anyone have a clue why it isnt calling the fields?

Re: Need help with the Template Layout of FormBuilder

Posted: Wed Dec 13, 2006 11:29 am
by jongrant
Anyone have any ideas?

Re: Need help with the Template Layout of FormBuilder

Posted: Wed Dec 13, 2006 12:19 pm
by Dr.CSS
Do you have a link?...

Re: Need help with the Template Layout of FormBuilder

Posted: Wed Dec 13, 2006 1:23 pm
by jongrant

Re: Need help with the Template Layout of FormBuilder

Posted: Thu Dec 14, 2006 5:12 am
by Dr.CSS
Looks to me like you are not using the module or not using it correctly, all the calls to the inputs are coming up blank in your page source...

Did you actually build this in the module or just try and paste it after the module call?...

Re: Need help with the Template Layout of FormBuilder

Posted: Thu Dec 14, 2006 5:51 am
by jongrant
What you see on that page is just the call to the module. The code that I posted in my previous posts is what is in the Template Layout Options of the specific form made in FormBuilder.

The documentation says to call it through either an array or by specificially calling them individually though {$myfield->input}. I want to use this instead of an array as I'm not good with arrays and configing them to work with a table.

Thanks

Re: Need help with the Template Layout of FormBuilder [Fixed]

Posted: Thu Dec 14, 2006 7:38 am
by jongrant
I recieved an email from the creator of the FormBuilder, Samuel, and he immediatley told me what was wrong.

The code uses the literal name of the field, so its case sensitive. I had capital letters in my field names but not in my code for the template so thats why it wasnt working.

Thank you Mark and Samuel for helping out with this problem. Much appreciated.