[Bps-public-commit] rt-extension-formtools branch, hidden-fields, created. 0.07_03-6-gaff1544

Kevin Falcone falcone at bestpractical.com
Mon May 9 11:27:09 EDT 2011


The branch, hidden-fields has been created
        at  aff1544b44e6b722b5e04e94e747e03e4c3bed4d (commit)

- Log -----------------------------------------------------------------
commit aff1544b44e6b722b5e04e94e747e03e4c3bed4d
Author: Kevin Falcone <kevin at jibsheet.com>
Date:   Mon May 9 11:26:46 2011 -0400

    Move 6bf36a3bdd7cb5956632df193c92034297fd2f90 here where it compiles
    
    Adds a hidden option for rendering an invisible field

diff --git a/html/FormTools/Field b/html/FormTools/Field
index 7c24610..4ea313c 100644
--- a/html/FormTools/Field
+++ b/html/FormTools/Field
@@ -147,7 +147,9 @@ unless ( $default ) {
 % } else { # CF
 
 
-% if ($render_as eq 'normal') {
+% if ($render_as eq 'hidden') {
+    <input type="hidden" class="hidden" name=<% $input_name %> value="<% $default %>">
+% } elsif ($render_as eq 'normal') {
     <& /Elements/EditCustomField, Object => $queue, CustomField => $cf, NamePrefix => $NamePrefix, 
             ($cf->Type =~ /text/i) ? (Cols => $cols ||60) : (),
             ($cf->Type =~ /freeform/i) ? (Cols => $cols ||30) : (),

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



More information about the Bps-public-commit mailing list