Troy Davis | 2 Mar 17:10

[FormBuilder] ETA on new release with mem leak fix and regex validation with commas?

Is there an ETA on a new release that incorporates the memory leak and regex fixes?


http://www.formbuilder.org/pipermail/fbusers/2007-February/000140.html

I tried to build from the svn trunk, but I can't figure out how. Never seen Makefile.PL in a subdirectory before, I keep getting:

Could not open 'lib/CGI/FormBuilder/Util.pm': No such file or directory

What is the recommended method for building from svn?

I also navigated to the readme in the repository and tried the svn://... URL, I get connection refused. 

http://www.formbuilder.org/repos/formbuilder/README

Thank You,
Troy

_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers
Nate Wiger | 2 Mar 19:07
Picon
Gravatar

Re: [FormBuilder] ETA on new release with mem leak fix and regex validation with commas?

Troy-

I just built 3.0501, which includes the memory leak fix. It'll be up
on CPAN soon as well:

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

Feel free to send this to the Catalyst list too.

There are no regex changes in this version - when we left it, I asked
you a follow-up and never heard back. So that issue is still
outstanding.

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

Troy Davis | 2 Mar 20:35

Re: [FormBuilder] ETA on new release with mem leak fix and regex validation with commas?

Hi Nate,

Thanks for packaging that up!

I didn't write the message reporting the regex comma issue, that was  
Kevin Montuori. I haven't worked with the js* options yet, so I'm not  
sure where I would go to test out the same tactic.

Thank You,
Troy

On Mar 2, 2007, at 1:07 PM, Nate Wiger wrote:

> Troy-
>
> I just built 3.0501, which includes the memory leak fix. It'll be up
> on CPAN soon as well:
>
>   http://www.formbuilder.org/download/CGI-FormBuilder-3.0501.tgz
>
> Feel free to send this to the Catalyst list too.
>
> There are no regex changes in this version - when we left it, I asked
> you a follow-up and never heard back. So that issue is still
> outstanding.
>
> -Nate
>
>

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

Ryan Tate | 4 Mar 02:22

[FormBuilder] requiring any of several fields

As far as I can tell, there is no way to require that any one of
several fields be present.

I have an app where I need either field1 or field2 filled out. Neither
on its own is required, and a validate method attached to either field
would not detect when both are empty because it would never get
called!

The workaround for me is to inspect the form after it is submitted,
andmake sure one of the fields is set. If not, I mark one field as
invalid and set its message to something useful, then send the form
back to the user.

What would be more useful would be a formwide_validate callback that
checks the whole form, as opposed to a particular field like normal
validate. This would be the logical place to do what I'm trying to
accomplish.

$form->formwide_validate(sub{
  my $form = shift;
  ($form->field('foo') || $form->field('bar')) or return;
  return 1;
});
_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers

Nate Wiger | 4 Mar 04:03
Picon
Gravatar

Re: [FormBuilder] requiring any of several fields

On 3/3/07, Ryan Tate <lists <at> ryantate.com> wrote:
> As far as I can tell, there is no way to require that any one of
> several fields be present.

Have you tried using the FormBuilder Data::FormValidator support?

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

Daniel Vela | 4 Mar 09:38
Picon

Re: [FormBuilder] Newbie, question about formbuilder

Dan Axtell <daniel.axtell <at> snet.net> writes:

> 
> Personally, I think a giant form where you can edit any cell strikes me as a 
> confusing interface, and problematic as the table gets big.  Why not use 
> Javascript to launch a pop-up form (created by FormBuilder) when you click on 
> a row, that passes the row values into the form as URL parameters?
> _______________________________________________
> FBusers mailing list
> FBusers <at> formbuilder.org
> http://www.formbuilder.org/mailman/listinfo/fbusers
> 
> 

Dan, 

Thanks for your response.  You are right that the table would be large (I expect
somewhere in the range of about 130 rows), but I want to be able to make several
changes at once, without having to pop-up form each time, I want to make several
changes at once and then submit.  formbuilder is great at creating a form, but
what I would like it to do is go thru and create several forms on a page.  Then
I can have my users change several sections at once and then make one request.

Thanks Again, Daniel Vela

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

Ryan Tate | 4 Mar 22:07

Re: [FormBuilder] requiring any of several fields

On 3/3/07, Nate Wiger <nwiger <at> gmail.com> wrote:
> Have you tried using the FormBuilder Data::FormValidator support?

No, I had not! Thanks for the pointer. I see now this case (requiring
any one of several fields) is cited specifically in the docs, sorry
for missing it.

So if I pass a D::FV obj as the validate argument to
CGI::FormBuilder->new, will the additional validation I set up for
various fields still work? ie can I still do
$form->field(name=>'email',required=>1,validate=>'EMAIL');
? Or do I have to do everything through the D::FV object?

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

Nate Wiger | 5 Mar 04:02
Picon
Gravatar

Re: [FormBuilder] requiring any of several fields

On 3/4/07, Ryan Tate <lists <at> ryantate.com> wrote:
> On 3/3/07, Nate Wiger <nwiger <at> gmail.com> wrote:
> > Have you tried using the FormBuilder Data::FormValidator support?
>
> No, I had not! Thanks for the pointer. I see now this case (requiring
> any one of several fields) is cited specifically in the docs, sorry
> for missing it.
>
> So if I pass a D::FV obj as the validate argument to
> CGI::FormBuilder->new, will the additional validation I set up for
> various fields still work? ie can I still do
> $form->field(name=>'email',required=>1,validate=>'EMAIL');
> ? Or do I have to do everything through the D::FV object?

You have to use the D::FV object for everything, but FB does bridge
the gap by automatically detecting invalid fields/etc. So you can set
messages, but not validations thru field()

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

Kevin Jordan | 6 Mar 19:08
Picon

[FormBuilder] How to validate input not in list?

I need to be able to validate that the information the user puts in a field on my form is NOT in a long list that I have in a file.
The reason behind this being I never want the same value used twice.  For example, once a username is used, I don't want to allow someone to request it again.
 
What is the best way to do this?
 
 
_______________________________________________
FBusers mailing list
FBusers <at> formbuilder.org
http://www.formbuilder.org/mailman/listinfo/fbusers
Nate Wiger | 6 Mar 19:21
Picon
Gravatar

Re: [FormBuilder] How to validate input not in list?

On 3/6/07, Kevin Jordan <kjordan3 <at> gmail.com> wrote:
> I need to be able to validate that the information the user puts in a field
> on my form is NOT in a long list that I have in a file.
> The reason behind this being I never want the same value used twice.  For
> example, once a username is used, I don't want to allow someone to request
> it again.
>
> What is the best way to do this?

1) Add a unique DB constraint so bad data can't possibly get in

2) Write a \&check_username_is_unique callback function, and pass it
to validate for 'username'

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


Gmane