[Bps-public-commit] rt-extension-formtools branch, validation, created. 0.07_02-12-g00e5051

Kevin Falcone falcone at bestpractical.com
Tue Sep 27 02:22:04 EDT 2011


The branch, validation has been created
        at  00e5051d1797196ea78c54fc4f78a35c2d73eb86 (commit)

- Log -----------------------------------------------------------------
commit 00e5051d1797196ea78c54fc4f78a35c2d73eb86
Author: Kevin Falcone <kevin at jibsheet.com>
Date:   Tue Sep 27 01:21:22 2011 -0500

    Actually allow validation of radios
    
    This doesn't support checkboxes, but at least we print out Magic which
    means that radio button + a no value option will get validated.

diff --git a/html/FormTools/Field b/html/FormTools/Field
index 428a0c3..a36d181 100644
--- a/html/FormTools/Field
+++ b/html/FormTools/Field
@@ -112,6 +112,10 @@ unless ( $default ) {
 
 % } else { # CF
 
+% unless ($render_as eq 'normal') {
+<input type="hidden" class="hidden" name="<%$NamePrefix . $cf->Id %>-Values-Magic" value="1" />
+% }
+
 
 % if ($render_as eq 'normal') {
     <& /Elements/EditCustomField, Object => $queue, CustomField => $cf, NamePrefix => $NamePrefix, 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list