Skip navigation
scottmx81
Currently Being Moderated

Select Item Caption Sent During Form Submission

Sep 8, 2007 10:45 PM

In sending forms with Spry.Utils.submitForm(), I see if the option value is null, the Spry function submits the option caption as the value. I do not think this is necessarily the ideal functionality. In my case, I often leave the first option blank with a caption such as "Please Select Value". The server side knows how to handle a blank value, and would either display an error message if it was a required field, or save it with a null value if not a required field. Spry sending the "Please Select Value" type captions really interferes with this. I realize the simple solution is to change those captions to a null value as well, but I don't particularly want to lose them either.

I was able to change this functionality with a simple modification to the Spry.Utils.extractParamsFromForm function, but I think there must be a more optimal way to do this. Any ideas?

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)