[ZPT] Formulator Problems
beno
zope@thewebsons.com
Fri, 11 Oct 2002 11:31:26 -0400
At 08:15 AM 10/11/2002 -0600, you wrote:
>Formulator has a lot of documentation in the Zope Help system, including
>some quick starts. For better or worse, a lot of the current
>documentation is still focused on DTML.
This is not an answer to my question! I'm well aware of the help they have
and the fact that it's in DTML! Would someone care to address my question?
Thanks,
beno
>On Friday, October 11, 2002, at 07:43 AM, beno wrote:
>
>>Hi;
>>I'm trying to follow a recipe someone named *macquyver007* posted on
>>zopelabs for using Formulator. (I've done away with his check_form script
>>since I'm not interested in authenticating users.) Here's a code snippet:
>>
>><form name="email_us_formulator" method="post" action="email_us.zpt">
>>Your Name:<br>
>><input tal:condition="python:request.has_key('field_Your Name')"
>>tal:attributes="value request/field_Your Name" name="field_Your Name"
>>type="text" id="field_Your Name">
>> <input tal:condition="python:not request.has_key('field_Your
>> Name')" name="field_Your Name" type="text" id="field_Your Name">
>><br>
>>Your Phone:<br>
>><input tal:condition="python:request.has_key('field_Your Phone')"
>>tal:attributes="value request/field_Your Phone" name="field_Your Phone"
>>type="text" id="field_Your Phone">
>> <input tal:condition="python:not request.has_key('field_Your
>> Phone')" name="field_Your Phone" type="text" id="field_Your Phone">
>><br>
>>Your Email:<br>
>><span tal:condition="python:request.REQUEST_METHOD == 'POST'"
>>tal:content="structure python:formErrors['Your Email:']"
>>tal:on-error="string:" style="color:red">error goes here</span>
>><input tal:condition="python:request.has_key('field_Your Email')"
>>tal:attributes="value request/field_Your Email" name="field_Your Email"
>>type="text" id="field_Your Email">
>> <input tal:condition="python:not request.has_key('field_Your
>> Email')" name="field_Your Email" type="text" id="field_Your Email">
>><br>
>>Your Comments:<br>
>><span tal:condition="python:request.REQUEST_METHOD == 'POST'"
>>tal:content="structure python:formErrors['Your Comments:']"
>>tal:on-error="string:" style="color:red">error goes here</span>
>><input tal:condition="python:request.has_key('field_your_comments')"
>>tal:attributes="value request/field_Your Comments"
>>name="field_your_comments" type="textarea" id="field_Your Comments">
>> <input tal:condition="python:not request.has_key('field_Your
>> Comments')" name="field_Your Comments" type="text" id="field_Your Comments">
>><br>
>></center><br>
>><input type="submit" value=" OK ">
>>
>>My problems are these:
>>Why doesn't the form validate? How do I make it validate?
>>How do I incorporate a textarea? I've tried changing the *input* part of
>>the tag, but that simply makes the tag disappear!
>>TIA,
>>beno
>>
>>
>>
>>_______________________________________________
>>ZPT mailing list
>>ZPT@zope.org
>>http://lists.zope.org/mailman/listinfo/zpt
>