Formbuilder extension

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

Re: Formbuilder extension

Postby jadwigo » Fri Sep 24, 2010 8:14 am

version 0.24 - you may give your fieldsets an ID that's not dependent on the label now
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Re: Formbuilder extension

Postby rolandow » Thu Oct 28, 2010 1:13 pm

I uploaded the files to the extensions folder and enabled the extension. Now, when I put [[ contactform ]] in my page, I see the following error:

Code: Select all
Fatal error: Call to undefined function cleanparams() in /home/hauwerx/public_html/pivotx/extensions/formbuilder/_formbuilder_contactform.php on line 16


When I comment out this function in the PHP code, the formbuilder seems to work.

Second question: how can I add several receivers to the to-field? I tried using to="bla1@bla.com, bla2@bla.com" but this didn't work.
rolandow
 
Posts: 2
Joined: Thu Oct 28, 2010 1:11 pm

Re: Formbuilder extension

Postby jadwigo » Thu Oct 28, 2010 1:48 pm

This sounds like your PivotX installation is not totally up to date.

The curren version od Formbuilder requires that 2.1.0 or higher is installed. Somewhere before that version the clean_params() functions was renamed to cleanParams(). So either your PivotX is to old, or some files were not completely updated.

---

The [[contactform]] tag does not support multiple recipients at this time. If you feel comfortable hacking PHP you can make a custom formbuilder configuration that adds CC recipients by modifying the template.
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Re: Formbuilder extension

Postby rolandow » Thu Oct 28, 2010 2:19 pm

Yes. That seems to be the solution, I upgraded Pivot, and now it's okay.

So how can I add multiple recipients ?
rolandow
 
Posts: 2
Joined: Thu Oct 28, 2010 1:11 pm

Re: Formbuilder extension

Postby dasPoda » Sat Nov 13, 2010 3:02 am

I can't seem to get the contact form to work
I'm running PivotX 2.1.2, switched ereg_replace to preg_replace and allowed javascript, but I get this

Let op: Uw inzending is nog niet verstuurd. Er is een fout in het emailscript.

any ideas ?
dasPoda
 
Posts: 13
Joined: Tue Sep 14, 2010 3:37 am

Re: Formbuilder extension

Postby jadwigo » Mon Nov 15, 2010 8:51 am

first some questions:
- what version of formbuilder are you using?
- When you view the source of your page, is jquery loaded exactly once?
- are there any javascript errors?
- is there anywhere I can take a look?
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Re: Formbuilder extension

Postby Reheuvel » Fri Jan 21, 2011 9:17 am

trouble generating custom field.

Is there anyone that uses the feature to generate custom field with the example given?

this one worked fine:

Code: Select all
[[ contactform fields="text:Naam,required;text:E-mail address,email|required;textarea:Message,required" submit="Send message" ]]


but now i want to add a select list so i thought to put in to make a dropdown:

Code: Select all
select:Aanvraag, required,[een,twee,drie]


even replacing the [] for () does not work. Does anyone know the correct syntax for the select field with the option?

Regards
Reheuvel
 
Posts: 22
Joined: Mon Aug 16, 2010 9:36 am

Re: Formbuilder extension

Postby jadwigo » Fri Jan 21, 2011 9:39 am

Uhm... unfortunately there is no syntax for select fields yet, you should use the advanced configuration to use something like that.
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Re: Formbuilder extension

Postby Reheuvel » Fri Jan 21, 2011 2:50 pm

jadwigo wrote:Uhm... unfortunately there is no syntax for select fields yet, you should use the advanced configuration to use something like that.

Ty for the quick reply.

I started using the advanced features and it works like a charm except the select is still not working.
I read the tutorial and saw the option value that i needed to add, so i added to make a list:

Code: Select all
  'aanvraag' => array(
    'name' => 'message',
    'label' => 'Selecteer uw soort aanvraag',
    'type' => 'select',
    'isrequired' => true,
    'value' => array('een', 'twee', 'drie'),
    'requiredmessage' => 'Om u het beste van dienst te zijn is een verplicht veld. Selecteer s.v.p. uw soort aanvraag',
    'validation' => 'string',
    'error' => 'Selecteer svp een optie'
  )


The select is created but no values inserted. What do i do wrong?
Reheuvel
 
Posts: 22
Joined: Mon Aug 16, 2010 9:36 am

Re: Formbuilder extension

Postby jadwigo » Fri Jan 21, 2011 3:11 pm

Instead of:
Code: Select all
'value' => array('een', 'twee', 'drie'),


You should use:
Code: Select all
'options' => array(
  'value1' => 'Label Een',
  'value2' => 'Label Twee',
  'value3' => 'Label Drie'
),


the same goes for radio groups
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

PreviousNext

Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 1 guest

cron