Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Advanced Error Formatting in sfForms?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ian  
View profile  
 More options Jun 11 2008, 6:29 pm
From: Ian <iricket...@gmail.com>
Date: Wed, 11 Jun 2008 15:29:12 -0700 (PDT)
Local: Wed, Jun 11 2008 6:29 pm
Subject: Advanced Error Formatting in sfForms?
Hey Group,

So with the new formatters, we can customize the row formats,
including form elements, helps, and errors.  However, it seems to be
missing some functionality (or at least I can't find it).

My question is, what is the best way to alter the form element and/or
the table row when errors occur (i.e. add styles)?

For example, in addition to displaying the error text next to the
field, I want to highlight the entire row with a red border for better
usability.

How can I incoprorate this into the form's formatter?  Would this
require me to create an entirely separate formatter and activate it on
the fly?

Thanks for any help or suggestions!

-- Ian


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas Perriault  
View profile  
 More options Jun 12 2008, 4:48 am
From: "Nicolas Perriault" <nperria...@gmail.com>
Date: Thu, 12 Jun 2008 10:48:41 +0200
Local: Thurs, Jun 12 2008 4:48 am
Subject: Re: [symfony-devs] Advanced Error Formatting in sfForms?

On Thu, Jun 12, 2008 at 12:29 AM, Ian <iricket...@gmail.com> wrote:
> For example, in addition to displaying the error text next to the
> field, I want to highlight the entire row with a red border for better
> usability.

> How can I incoprorate this into the form's formatter?

This is what I did for that purpose:
http://symfonians.org/browser/trunk/lib/widget/sfWidgetFormSchemaForm...

++

--
Nicolas Perriault
http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com
Phone: +33 660 92 08 76


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Slick Rick  
View profile  
 More options Jun 12 2008, 12:41 pm
From: "Slick Rick" <slickric...@gmail.com>
Date: Thu, 12 Jun 2008 10:41:29 -0600
Local: Thurs, Jun 12 2008 12:41 pm
Subject: Re: [symfony-devs] Re: Advanced Error Formatting in sfForms?
Cool,

That's what I was looking for!

-- Ian


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google