Anonymous can't select the date picker box in register form

2 messages Options
Embed this post
Permalink
sonnt () Anonymous can't select the date picker box in register form
Reply Threaded More More options
Print post
Permalink
Hi all,

I have used a date picker box in my register form. My problem is: just admin can use the date picker box, when anonymous register he can not use this option. This is my code:

----------------------------
<div class="row"
tal:define="error errors/birthdate| nothing;
birthdate request/birthdate | nothing;
inputname string:birthdate;
formname string:join_form;
inputvalue birthdate;
starting_year python:1940;
show_hm python:0;
show_ymd python:1;"
tal:attributes="class python:test(error, 'field error', 'join_form_field')">

<h3 for="birthdate"
i18n:translate="label_birthdate">Birth date</h3>

<span class="fieldRequired" title="Required"
i18n:attributes="title title_required;"
i18n:translate="label_required">(Required)</span>

<div class="formHelp" i18n:translate="help_birthdate">
Enter your birth date
</div>

<div tal:content="error">Validation error output</div>
<div metal:use-macro="here/calendar_macros/macros/calendarDatePickerBox">
calendar pop-up
</div>

</div>
---------------------------
Many thanks for any help!

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Steve McMahon () Re: Anonymous can't select the date picker box in register form
Reply Threaded More More options
Print post
Permalink
Check to make sure your loading the javascript support for that macro for anonymous viewers.

2009/9/14 Nguyễn Thái Sơn <[hidden email]>
Hi all,

I have used a date picker box in my register form. My problem is: just admin can use the date picker box, when anonymous register he can not use this option. This is my code:

----------------------------
<div class="row"
tal:define="error errors/birthdate| nothing;
birthdate request/birthdate | nothing;
inputname string:birthdate;
formname string:join_form;
inputvalue birthdate;
starting_year python:1940;
show_hm python:0;
show_ymd python:1;"
tal:attributes="class python:test(error, 'field error', 'join_form_field')">

<h3 for="birthdate"
i18n:translate="label_birthdate">Birth date</h3>

<span class="fieldRequired" title="Required"
i18n:attributes="title title_required;"
i18n:translate="label_required">(Required)</span>

<div class="formHelp" i18n:translate="help_birthdate">
Enter your birth date
</div>

<div tal:content="error">Validation error output</div>
<div metal:use-macro="here/calendar_macros/macros/calendarDatePickerBox">
calendar pop-up
</div>

</div>
---------------------------
Many thanks for any help!

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers