[Solar-talk] Form Element of Displayed Text

Benjamin Kaineder benjamin at kaineder.com
Wed Apr 30 15:54:50 CDT 2008


You could use "xhtml" as type an pass whatever html you want. Only
problem with this approach would be that a label is always rendered
additionally.

Ben

Kilbride, James P. schrieb:
> I'm looking to add an element to my solar_form that is text/links
> which is based on the last elements that the are set in the form
> already. Basically I want to conditionally want a link added into the
> form at a specific point if some value is true. I can't find any
> element types though that support that kind of thing. Is there an
> element that is just a 'html/text' field that i could set and put my
> text into? Something like:
>  
> $this->myForm->setElement('MyDisplayedText', array(
>     'type' => 'label',
>     'label' => 'whatever I want above it',
>     'value' => 'my super special stuff which may even be an href or
> link.',
>     )
> );
>  
>  
> Thanks folks.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>   


More information about the Solar-talk mailing list