Form Generation Library |
[eluser]seanloving[/eluser]
Is there a way to highlight multiple fields with a single error? Something like this would be useful: Code: $form->add_error( array('street','city','state','zipcode'), 'no such address for this contact' )
[eluser]macigniter[/eluser]
[quote author="seanloving" date="1266625891"]Please notice that the position is 'after' but looking at the screenshot you see the labels are 'before'. Where is the CSS that controls this? [/quote] The CSS that controls this is located in /styles/form.css (please read the user guide in regards to this). PLEASE NOTE In your example you are assigning the CSS class 'right' to all the labels. The CSS class 'right' is actually floating LEFT! It just sets the text-align to 'right'. So clearly that's the reason why the labels are still on the left and not on the right :-) I just played around and was able to render the example form with labels after within 5 minutes. It is mandatory that you change the CSS since a change in the config file alone doesn't do the trick. Here is my "label after" example: 1. Modify CSS (added to existing form.css) Quote:/** 2. Modified Configuration file (form.php) Code: $config['defaults'] = array( 3. Changed some lines in the welcome.php controller Please grab the modified controller here. 4. Et voila!
[eluser]macigniter[/eluser]
[quote author="seanloving" date="1266657681"]Is there a way to highlight multiple fields with a single error? Something like this would be useful: Code: $form->add_error( array('street','city','state','zipcode'), 'no such address for this contact' ) I like this idea, too!
[eluser]macigniter[/eluser]
[quote author="seanloving" date="1266625891"] When I change position to 'after' then all the required fields get a double asterisk.[/quote] I just uploaded a new version with some minor bugfixes. Please install and let me know if you still get the double asterisks. THANKS!
[eluser]macigniter[/eluser]
@ALL New Version (1.0.1) posted! Download from here... Read change log...
[eluser]Mat-Moo[/eluser]
1.0.1 - 02/18/09 - Last year (edit: lol even in the source!)
[eluser]macigniter[/eluser]
[quote author="Mat-Moo" date="1266886834"]1.0.1 - 02/18/09 - Last year (edit: lol even in the source!)[/quote] ooops never mind... you all know what i mean
[eluser]seanloving[/eluser]
@macigniter- I think I now understand the interaction between form.css and config/form.php. Thank you. [quote author="macigniter" date="1266884997"][quote author="seanloving" date="1266625891"] When I change position to 'after' then all the required fields get a double asterisk.[/quote] I just uploaded a new version with some minor bugfixes. Please install and let me know if you still get the double asterisks. THANKS![/quote] Yes I still get double asterisks. NOT a priority, NOT a requirement, but FYI.
[eluser]macigniter[/eluser]
[quote author="seanloving" date="1266911394"] Yes I still get double asterisks. NOT a priority, NOT a requirement, but FYI.[/quote] Can you please send me your: - form.php config file - welcome.php controller - form.css stylesheet via email to info [at] frankmichel dot com? I would like to dig deeper and see what causes this double asterisk. Thanks!! |
Welcome Guest, Not a member yet? Register Sign In |