<Solved>Datepicker in Formbuilder

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Neo
Forum Members
Forum Members
Posts: 62
Joined: Thu Jan 18, 2007 1:09 am

<Solved>Datepicker in Formbuilder

Post by Neo »

Hi all,

I was using Formbuilder module to build a form. I have a date field in my form and used the datatype "Datepicker". In the Form template, I used the code below to display it in the UI.

Code: Select all

<tr>
    <td align="right"><p>Date submitted {$date->required_symbol}:</p></td>
     <td>{$date->input}</td>

</tr>
But in the UI, instead of displaying the field, it displays the string "Array". Not sure if there is any other way of specifying the date field in the template.

The URL for the form is below.

http://ww2.ce.gatech.edu/Employers/Submit-Job-Posting/

Any pointers to this would be very helpful.

Thanks,
Neo
Last edited by Neo on Tue Nov 20, 2007 7:38 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Datepicker in Formbuilder

Post by Nullig »

The datepicker is a multipart field. if you look in the sample templates the code looks like this:

Code: Select all

{if $entry->multiple_parts == 1}
    	{section name=numloop loop=$entry->input}
       		{if $entry->label_parts == 1}
       			<div>{$entry->input[numloop]->input} {$entry->input[numloop]->name}</div>
       		{else}
       			{$entry->input[numloop]->input}
       		{/if}
       		{if $entry->input[numloop]->op}{$entry->input[numloop]->op}{/if}
      	{/section}
{else}
       	{if $entry->smarty_eval == '1'}{eval var=$entry->input}{else}{$entry->input}{/if}
{/if}
Nullig
User avatar
Neo
Forum Members
Forum Members
Posts: 62
Joined: Thu Jan 18, 2007 1:09 am

Re: <Solved>Datepicker in Formbuilder

Post by Neo »

Hi Nullig,

Thanks a lot. That resolved the problem  :)

Regards,
Neo
Post Reply

Return to “Modules/Add-Ons”