Hello all.

I have a case where I use the group parameter, but I'm doing something
wrong.

I have 5 fields where in the first 4 the user provides int
values and in the 5'th it enters a string. The user is not required to
provide values for this fields but if a value is provided for any of
the
first fields, then the fifth should have a value.

I think this can be done with the group parameter.
I wrote this in the edit.yml:
============================
  other_coord{latx}:
     group: lat
     intValidator:
  other_coord{laty}:
     group: lat
     intValidator:
  other_coord{label}:
     group: lat
     required:
       msg: Coordinate Stystem not defined

  other_coord{longx}:
     group: long
     intValidator:
  other_coord{longy}:
     group: long
     intValidator:
  other_coord{label}:
     group: long
     required:
       msg: Coordinate Stystem not defined
==============================

The problem with this configuration is that the other_cord{label} is
required
even if the other fields have no value defined.

Can someone help with this?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to