This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » development » Feature requests » sfValidatorString: option to trim value
sfValidatorString: option to trim value [message #102895] Wed, 21 July 2010 19:39 Go to previous message
stebleton  is currently offline stebleton
Messages: 3
Registered: July 2010
Location: San Francisco, CA
Junior Member
Hello,

It would be useful to have an option in sfValidatorString to automatically trim leading and/or trailing whitespace from the value upon submission. This option would be performed prior to applying the min_length and max_length options.

Default would be false, meaning no trimming is performed. Acceptable values would be:
  • 'leading'
  • 'trailing'
  • 'both'
  • boolean false, indicating no trimming

Cheers,
Scott

Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Integration symfony with shindig
Goto Forum:

  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software