search for: paction

Displaying 1 result from an estimated 1 matches for "paction".

Did you mean: action
2006 Apr 13
0
Custom validation of form fields?
...:action => ''do_action'', :id => @pid }, :before => ''Element.hide("action_div");'' %> <%= text_field_tag "damt", "0", :size => ''5'' %> <input type="submit" name="paction" value="Enter Data"> </form> I would like to make sure the ''damt'' field is submitted with only multiples of a pre-specified amount, say for example it can only be 15, 30, 45, 60, etc How would I go about creating a custom validates_ method to handle th...