On Tuesday, June 9, 2015 at 4:51:59 PM UTC-4, Chaitu P wrote:
>
> Where should I write this. Is it in controller or view
>
It depends on where you define the form. If you create the form using the
FORM or SQLFORM helpers in the controller, then that's where you do it. If
you create the form usi
according to anthony code, it seems to write in controller and then in view
just write {{=form}}
best regards,
stifan
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (
Where should I write this. Is it in controller or view
On Mon, Jun 8, 2015 at 4:53 AM, Anthony wrote:
> If you really need the id's in the URL to which the form is submitted, you
> can specify the form's "action" attribute:
>
> form = FORM(..., _action=URL(..., vars=dict(question_id=question_id,
If you really need the id's in the URL to which the form is submitted, you
can specify the form's "action" attribute:
form = FORM(..., _action=URL(..., vars=dict(question_id=question_id, user_id
=user_id))
Alternatively, you could include the question id and user id as hidden
fields in the form
Hello,
This is my web page. Iam showing the questions using loop. If for example
student has answered for 1st question I should be able to save answer for
that corresponding id.Also I want to save the student id as well. I would
appreciate if someone helps.
[image: Inline image 1]
On Fri, Jun 5,
can you share the code you have at the moment?
or at least a screenshot of the webpage you mention..
On Thursday, June 4, 2015 at 11:26:00 PM UTC-5, Chaitu P wrote:
>
>
> I have a situation where I have several questions displayed on a page and
> below each of the question there will be a form li
6 matches
Mail list logo