Need help with the Template Layout of FormBuilder [Fixed]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jongrant
Forum Members
Forum Members
Posts: 23
Joined: Thu Dec 07, 2006 11:04 am

Need help with the Template Layout of FormBuilder [Fixed]

Post 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
Last edited by jongrant on Thu Dec 14, 2006 7:38 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Need help with the Template Layout of FormBuilder

Post 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
jongrant
Forum Members
Forum Members
Posts: 23
Joined: Thu Dec 07, 2006 11:04 am

Re: Need help with the Template Layout of FormBuilder

Post 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?
jongrant
Forum Members
Forum Members
Posts: 23
Joined: Thu Dec 07, 2006 11:04 am

Re: Need help with the Template Layout of FormBuilder

Post by jongrant »

Anyone have any ideas?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Need help with the Template Layout of FormBuilder

Post by Dr.CSS »

Do you have a link?...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Need help with the Template Layout of FormBuilder

Post 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?...
jongrant
Forum Members
Forum Members
Posts: 23
Joined: Thu Dec 07, 2006 11:04 am

Re: Need help with the Template Layout of FormBuilder

Post 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
jongrant
Forum Members
Forum Members
Posts: 23
Joined: Thu Dec 07, 2006 11:04 am

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

Post 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.
Post Reply

Return to “Modules/Add-Ons”