Martin Dennett wrote:
>
>Is there any way I can amend the HTML behind the page to force a field 
>to be made mandatory? I'm thinking of the name field - once a user 
>enters their options page, I would like them not to be able to leave it 
>until they have filled their name in. I know it could be circumvented by 
>just closing the browser window, but most of the users of my list 
>wouldn't think of that ;-)


The template for the user options page, named options.html, can be
edited as described at
<http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.048.htp>,
or it can be edited per list via the "Edit the public HTML pages and
text files" link on the web admin pages, but I suspect you're wanting
to edit the actual HTML generated by the <mm-fullname-box> tag.

This is somewhat tricky as that tag generates the entire 'input' tag
for that entry in the form including the current value of 'fullname'.
You can't just replace the <mm-fullname-box> tag in the template with
whatever HTML you want because then you'd lose the current value to
pre-fill the box, so you have to actually edit the code in
Mailman/Cgi/Options.py to provide the replacement you want, and if
you're going to edit Options.py, you might as well just edit it to
require the full name be provided.

-- 
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to