template::widget::hidden (public)

 template::widget::hidden element_reference tag_attributes

Defined in packages/acs-templating/tcl/widget-procs.tcl

Parameters:
element_reference - Reference variable to the form element
tag_attributes - HTML attributes to add to the tag
Returns:
Form HTML for widget
Source code:
    upvar $element_reference element

    # Antonio Pisano: 
    # before 2015-09-03 we didn't enter this 'if' when element(value) existed.
    # This means that even if we had multiple values in element(values) those
    # were ignored, preventing the export of multiple values by hidden formfields.
    # I changed this by saying that field is multiple whenever element(values) 
    # exists and is not null.
    if { [info exists element(values)] && $element(values) ne "" } {
      #ns_log notice "hidden form element with multiple values: <$element(values)>"
      set output {}
      set count 0
      foreach itemvalue $element(values) {
	append output [subst {
	  <input type="hidden" id="$element(form_id):$element(name):$count" name="$element(name)" value="[ns_quotehtml $itemvalue]">
	}]
        incr count
      }
      return $output

    } else {

      #
      # Standard case
      #
      return [input hidden element $tag_attributes]
    }
XQL Not present:
Generic
PostgreSQL XQL file:
packages/acs-templating/tcl/widget-procs-postgresql.xql

Oracle XQL file:
packages/acs-templating/tcl/widget-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: