[Solar-talk] form element disable

Jeff Surgeson solar at 3hex.com
Sun May 21 15:54:57 PDT 2006


Hi

I am trying to set the form "disable" to make it read only for a particular 
element in the $info array of my view script like so:

$info = array(
    'user_email' => array(
        'disable'   => true,
        'attribs'   => array('size' => '40'),
    ),
);

A solar dump of the info array show all elements and settings to be there 
including the disable flag, the form displays correctly, the attribs work etc 
but the diasable flag has no effect.

Am I using this flag incorrectly?

Looking at Solar_Form it is specified

* : \\disable\\ : (bool) If disabled, the element is read-only 
* (but is still submitted with other elements).

So it should work, what am I missing?

-- 
Jeff Surgeson
-- 
Jeff Surgeson


More information about the solar-talk mailing list