just some bloke | 21 Dec 2006 01:30
Picon

Re: [FormBuilder] Move along.... Nothing to see here...

Move along, nothing to see here...

$session->param('fieldname') is the answer...

Stooopid me....

On 12/21/06, just some bloke <allenjb1 <at> gmail.com> wrote:
> given a fb::Multi based form using CGI::Session as per the
> FormBuilder::Multi POD
>
> What is the best way to access the prior 1 or 2 pages form elements content?
>
> Is there some sort of global space they are put?
>
> $form->field('fieldname') is erratic, and does not seem to be there 2
> pages on in the multi form.
>
> What I am saying is, based on the example script, how do I access
> prior (all previous) forms filled data?
>
> Sorry if I sound incoherent, but I never was able to express myself in
> english (native english speaker - go figure)
>
> TIA
>
> Aj
>
_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
(Continue reading)

just some bloke | 21 Dec 2006 00:21
Picon

[FormBuilder] FormBuilder::Multi question.

given a fb::Multi based form using CGI::Session as per the
FormBuilder::Multi POD

What is the best way to access the prior 1 or 2 pages form elements content?

Is there some sort of global space they are put?

$form->field('fieldname') is erratic, and does not seem to be there 2
pages on in the multi form.

What I am saying is, based on the example script, how do I access
prior (all previous) forms filled data?

Sorry if I sound incoherent, but I never was able to express myself in
english (native english speaker - go figure)

TIA

Aj
_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers

just some bloke | 18 Dec 2006 13:31
Picon

[FormBuilder] Patch to fix double header problem in 3.0401

The following patch appears to RESOLVE the double header problem I
have been experiencing.

 <at>  <at>  -1447,7 +1447,9  <at>  <at> 

     # dispatch to engine, prepend header
     debug 1, "returning $tmpl->render($self->{prepare})";
-    return $self->header . $tmpl->render($self->{prepare});
+               #removed the following line as it doubles up the html
header stuffs
+    #return $self->header . $tmpl->render($self->{prepare});
+    return $tmpl->render($self->{prepare});
 }

 # These routines should be moved to ::Mail or something since they're
rarely used
_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers

Nate Wiger | 18 Dec 2006 11:59
Picon
Gravatar

[FormBuilder] FormBuilder 3.05 released

Fieldsets, Catalyst support, table-free <div> rendering, and bugfixes.

http://www.formbuilder.org/download/CGI-FormBuilder-3.05.tgz

Happy Holidays,
Nate
_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers

Rohit Bhute | 18 Dec 2006 07:44

[FormBuilder] Create cascaded popup menus

I have to create cascaded popup menus or select lists -
like shown here http://www.javascriptkit.com/javatutors/selectcontent2.shtml
The contents will be prefectched from a database.
Is it possible to do it in Formbuilder?

Regards,
Rohit

_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers

Geoff Simmons | 11 Dec 2006 06:36

[FormBuilder] POD patch for CGI::FormBuilder::Template::TT2

Hi,

Noticed a small error in the documentation for the 'engine' method in
CGI::FormBuilder::Template::TT2.  It actually returns a Template object
(not a HTML::Template object).

I've provided a patch inline.

Geoff

Index: trunk/lib/CGI/FormBuilder/Template/TT2.pm
===================================================================
--- trunk/lib/CGI/FormBuilder/Template/TT2.pm	(revision 89)
+++ trunk/lib/CGI/FormBuilder/Template/TT2.pm	(working copy)
 <at>  <at>  -95,7 +95,7  <at>  <at> 

 =head2 engine

-Returns a reference to the C<HTML::Template> object
+Returns a reference to the C<Template> object

 =head2 prepare

_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers

not your business | 8 Dec 2006 11:26
Picon

[FormBuilder] Conditional "required =>" possible?

Hi there

I am a newbie with Formbuilder, It is FANTASTIC - Good work

anyway

I have a rather large form, and fields farther down the form may depend on what the value of the field above it is.

ie:

Do you own a car? [  Yes/No    ]
if Yes, then I want to make the following 5 fields, which are dependant on the first field, become Required, otherwise I do not want to have them even show up (if possible)

Is there a simple way to do this?

if not, how are people doing it?


if it is covered anyware, i have looked most of this afternoon without finding it, maybe you could point me to it?

thanks

_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers
kreso kreso | 30 Nov 2006 23:45
Picon
Favicon

[FormBuilder] Validation using Javascript

Hello everyone!
 
First i must complain for lack of examples for field validation using javascript. My question is how can i call javascript function for validaton? Second question is that this wont work:
 
my $jscode = <<'EOJS'; 
 extArray = new Array(".doc", ".txt",".pdf",".xml",".html",".htm");
 if (!form.file.value) return;
                 file = form.file.value;
 while (file.indexOf("\\") != -1)
  file = file.slice(file.indexOf("\\") + 1);
  ext = file.slice(file.indexOf(".")).toLowerCase();
  for (var i = 0; i < extArray.length; i++) {
  if (extArray[i] == ext) {
   return true;
  }
&nbsp ;}else{
 alert("Please only upload files that end in types: "+(extArray.join(" "))+"\nPlease select a new "
 + "file to upload and submit again.");
 return false;
 } 
 EOJS
 
$form = CGI::FormBuilder->new(
      enctype => 'multipart/form-data',
             method => 'get',
      sticky => 0,
             template => 'pravi.tmpl',
      jsfunc => $jscode
      );
 
Error is: Can't find string terminator "EOJS" anywhere before EOF at C:/www/testing.cgi line 22.
 
Or can someone write code using validation with javascript that checks file extensions.....
Tnx

Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.
_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers
Simon Crisp | 28 Nov 2006 17:17
Picon

[FormBuilder] Submit button problems

Hi there,

I have come across a problem whilst migrating functioning code from 
Windows to Gentoo and also upgrading from 3.0202 to 3.0401.

The problems occurs when I try to do;

$form->field(
                name => 'add',
                type => 'submit',
               value => 'Add',
               onclick => 'someJavaFunction();return false;',
               id => 'add',
        );

I get the error;

 Fatal: Can't load CGI::FormBuilder::Field::submit for field 'add' (type 
'submit'): Can't locate CGI/FormBuilder/Field/submit.pm in  <at> INC ...

Has the way that a submit button is created been changed or am I using a 
deprecated way of doing things?

Thanks for any help,

Simon

_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers

Paul Henrich | 26 Nov 2006 05:59
Picon
Favicon

[FormBuilder] Source::File & perl statement validation

I'm having trouble setting up my forms with the standard source::file  
configuration method. I need to do some validation routines in perl,  
but when I add these to my config.fb file, it does not load  
correctly. I suspect I am not indenting or quoting correctly, but I  
was unable to find it documented in CGI::FormBuilder::Source::File.

When I remove the 'profit' field and and its associated validator  
everything works as expected. I'm hoping that someone on the list has  
encountered this before and has an example of how to do it correctly.

Here is an example

name: income_reg
method: post
fields:
   year_ended:
    label: FY End Date
    message: - Enter date in format MM/DD/YYYY
   sales:
    message: - Sales must be a number. Enter 0 for no sales.
   expenses:
    message: - Required. Enter 0 for no expenses.
   profit:
    message: - Must equal sales less expenses.
		
validate:
   year_ended: DATE
   sales: NUM
   expenses: NUM
   profit: perl: '== ($c->form->field("sales") - $c->form->field 
("expenses"))'

submit: Save Financials

I have also tried:

profit:
  perl: ...

All the best,

Paul

_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers

kreso kreso | 22 Nov 2006 23:29
Picon
Favicon

[FormBuilder] Position of radio buttons

Hello!
I have a problem. I defined field with radio buttons:
$form->field(name =>'odabir',
      options=>['url','text','file'],
      value => 'text');
and i`m using html::template. So how can i place that three radio buttons on position that i want? They are all placed on this place<tmp_var field-odabir>. Can it be done to place each button lets say like this:
<at> first button
............................
............................
<at> second button
...........................
..........................
<at> third button
Thanks!

Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.
_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers

Gmane