newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

Predefined form elements #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Some predefined form elements:

* phone number; ( US vs. Non-US) box(412)-box(555)-box(1212)
$form->addUSPhone();
$form->addEPhone(); 

* Address:  Like the example except some easier to call.
$form->addAddress();

Original issue reported on code.google.com by tpetr...@gmail.com on 10 May 2010 at 2:17

GoogleCodeExporter commented 8 years ago
Thanks for the feedback - good suggestions.

- Andrew

Original comment by ajporterfield@gmail.com on 10 May 2010 at 4:37

GoogleCodeExporter commented 8 years ago

Original comment by moncojhr@gmail.com on 12 May 2010 at 1:45

GoogleCodeExporter commented 8 years ago

Original comment by moncojhr@gmail.com on 12 May 2010 at 1:46

GoogleCodeExporter commented 8 years ago
What would be nice is the ability to attach reference libraries with formatting 
defaults. Then you could centralize the library creation for your organization 
and include special formatting for things that are specific to your 
organization.

Attorneys, for example, would want to have specific legal citations appear with 
a very specific format. Creating a library and a feature that said, 
$form->addCustomLib(liburl);

Original comment by jasein...@gmail.com on 6 Jan 2011 at 1:46

GoogleCodeExporter commented 8 years ago
I like this idea as well. I think there needs to be validation attached with a 
number of regex strings for easy server side validation

Original comment by ch...@globerunnerseo.com on 25 Apr 2011 at 6:25

GoogleCodeExporter commented 8 years ago
Server-side validation through regular expressions is available in the 2.x 
branch that will be released into production very shortly (end of Apr/ 
beginning  or May).  If you're curious, you can see this in action by grabbing 
the PFBC 2.0 prototype zip file published in the project's download list at 
http://code.google.com/p/php-form-builder-class/downloads/list.

- Andrew 

Original comment by ajporterfield@gmail.com on 25 Apr 2011 at 7:28