Can you send a link to this?

Here is solution I have used for action items( this_point is one action 
item record):

        ptform = SQLFORM(db.point,this_point,
                        
buttons=[TAG.button("Submit",_value=True,_type="submit",_name="no_followup",_class="btn
 
btn-primary"),TAG.button("Follow-up",_value=True,_type="submit",_name="followup",_class="btn
 
btn-primary")])
        if ptform.validate():
            if request.vars.followup:
                ptform.vars.status='done'
                this_point.update_record(**dict(ptform.vars))
                redirect(URL('w','new_pt'))
            if request.vars.no_followup:
                this_point.update_record(**dict(ptform.vars))
                redirect(URL('c','show_company'))


which is roughly based on Andrew's answer here:
http://stackoverflow.com/... 
<http://stackoverflow.com/questions/10697843/is-it-possible-to-have-two-submit-button-for-one-form>

On Friday, December 13, 2013 at 4:47:59 PM UTC-8, Tim Richardson wrote:
>
> multiple action buttons via passing a list to selectable is now documented 
> in the book (github) 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to