> <input tal:attributes="value request/somevar" type="hidden" name="somevar" > value="" /> > > How do i prevent key errors if request/somevar isn't present? Quick answer 1) Upgrade to latest PageTemplates 2) <input tal:attributes="value request/somevar | nothing" type="hidden" name="somevar" value="" />