Good day Reinhardt followers,

Short: How can I make a field that renders itself as a pair of input
fields and a custom (not controlled by the user) label.

Long: I am trying to write a new custom field. I will use it for a
captcha-like service. The service works by requesting a question -
then receiving one and a token. The validation happens by sending the
answer along with the token. I want to write a form field that
encapsulates this logic. The elements should render (IMO) like

<input type="hidden" name="_token" value="1234567890" />
<input type="text" name="answer" />

And on submit I need the value of _token to validate the answer.

Thanks,
Emil

--
http://bolddream.com


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

Reply via email to