Part of the EllisLab Network
   
68 of 71
68
Form Generation Library
Posted: 26 November 2011 05:54 PM   [ Ignore ]   [ # 671 ]  
Summer Student
Avatar
Total Posts:  4
Joined  01-17-2007

Awesome!

A new version for CI2 with bugfixes and it’s both in sparks and on GitHub.
Can’t wait to get my hands dirty!

Profile
 
 
Posted: 27 November 2011 04:04 PM   [ Ignore ]   [ # 672 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  253
Joined  06-23-2008

Just released a new version 2.0.1 with two minor fixes. Please upgrade!

 Signature 

Tired of forms? Check out Form Generation Library

Profile
 
 
Posted: 28 November 2011 04:21 AM   [ Ignore ]   [ # 673 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  415
Joined  10-20-2008

Great job Mac, use this in every project I build now! The only thing missing for me is the ability to add a hint to an entry so it can be displayed - not even sure if this is technically possible.

 Signature 

Mat-Moo
Image moo - the easy to use image library!
MatMoo.com!
E-Mail Remind - Free reminders by email
Printfetti - Your photos on confetti!

Profile
 
 
Posted: 09 December 2011 01:44 PM   [ Ignore ]   [ # 674 ]  
Summer Student
Total Posts:  3
Joined  03-07-2011

I had a skim through some of the 68 pages of this forum post but I couldn’t see anything. So can anyone give any hints as to how to ajaxify this library. I usually write my own forms and use a jquery validation system first for things like empty fields and then an ajax/json response from a controller for db related errors (like user name already exists). I can see how I could get the client side real time validation working by using jquery selectors on different classes. But what i guess I am asking is how do I hijack the submit and make it json the errors I need? I haven’t actually tried it yet but I just thought I would ask first in case anyone has done this already.

Profile
 
 
Posted: 11 December 2011 04:49 AM   [ Ignore ]   [ # 675 ]  
Summer Student
Total Posts:  14
Joined  09-29-2008

** Feature Request **

Hey Frank,

Thanks for an awesome library, I’ve used it for a while now and the latest version is even better.

I use Smarty templates so the get_array() method is really useful, I also use the Inline Error option so I can output the form field and any error message with just one Smarty tag. The only missing piece is the label…

Here’s my request: Could the label string also be included with the data when the get_array() option is used? Perhaps this could be optional. This would naturally include the label_prefix and label_suffix options from the config.
Essentially, I’d like to output label, form field and error message as one Smarty tag.

What do think? Is it feasible?

Many thanks,
Bob

p.s. I’ve donated a couple of times now so I hope you enjoy the beers wink

Profile
 
 
Posted: 11 December 2011 04:23 PM   [ Ignore ]   [ # 676 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  253
Joined  06-23-2008
sidehowbob - 11 December 2011 04:49 AM

Thanks for an awesome library, I’ve used it for a while now and the latest version is even better.

I am glad you like it!

sidehowbob - 11 December 2011 04:49 AM

Here’s my request: Could the label string also be included with the data when the get_array() option is used? Perhaps this could be optional. This would naturally include the label_prefix and label_suffix options from the config. Essentially, I’d like to output label, form field and error message as one Smarty tag.

Absolutely. Let me include this with the next release. I will have to do some testing as I never use the get_array() method myself. But it should be done easily.

sidehowbob - 11 December 2011 04:49 AM

p.s. I’ve donated a couple of times now so I hope you enjoy the beers wink

I very much appreciate this. So thank you! Any donation or even kind words make me happy and motivate me to keep the library up to date.

 Signature 

Tired of forms? Check out Form Generation Library

Profile
 
 
Posted: 12 December 2011 03:29 AM   [ Ignore ]   [ # 677 ]  
Summer Student
Total Posts:  3
Joined  07-27-2011

Hello. I like your libraly so much. It help me a lot. I found some bug that you should fixed in 2.0.1.
I use checkgroup and radiogroup. I cannot pass attributes such as disabled=“disabled” to <input type=“radio”>  so I read a code and I found.

at line 1263 and 1320

$info = array(); 

change to

$info $atts

Thank you for your work. If I finish my work and collect money, I will donate to you too. (I hope I can finish it too.)

Profile
 
 
Posted: 17 December 2011 11:35 AM   [ Ignore ]   [ # 678 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  125
Joined  10-14-2010

Hi,
I want to code a user questionnaire system, where the admin can build a survey form from parts, as question types : textfields, radio selection, checkbox selection. Any idea how to use this lib and realize with my idea?

To clearly see what I think about: http://experiments.botsko.net/tests/formbuilder/
Of course a simpler version of this.

Thanks

EDIT : i solved my question writing a simple survery system.

Profile
 
 
Posted: 19 December 2011 08:35 AM   [ Ignore ]   [ # 679 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  125
Joined  10-14-2010

If I set empty string for radiogroup checked value as in the example, my the first radio button is checked at the rendered view, though..

Suggestions?

Profile
 
 
Posted: 22 December 2011 08:43 AM   [ Ignore ]   [ # 680 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  125
Joined  10-14-2010

If I set custom error message for radiogroup or checkgroup, I get following errors:

Message: Array to string conversion
Filename: libraries/Form.php
Line Number: 2658

Message: Undefined property: Form::$Array
Filename: libraries/Form.php
Line Number: 2658

No problem with text, or textarea, though..

Profile
 
 
   
68 of 71
68