Il 07/09/2010 1.31, Michael Hodges ha scritto:
I'm also new to SF and struggled with this.

My solution was a combination of javascript and php code. Hopefully the example code fragments are helpful for you.
Basically, my javascript updates the readonly field rather than the user.
 - Michael

[_form.php]
    echo $form['receipt_amount']->renderRow(array('readonly'));
This was the bit I was missing. In my case I don't need the javascript, as the value does not have to be changed. I just didn't know how to render it readonly in the layout.

Thanks very much.

Marco Rocci

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to