Faculty of Engineering and Mathematical Sciences 
Not logged in (login)


This forum is provided to promote discussion amongst students enrolled in Agile Web Development (CITS3403).
RSS cloud
Jump to:

Dynamic WTForms and multiple button/submitfields

1 of 419 articles shown, currently no other people reading this forum.
From: Timothy F.
Date: Sat 16th May 2020, 3:54pm


It's a bit hard to see what you are doing. If you are using wtforms and jinja then you are 
definitely doing server side rendering (jinja is interpretted on the server, noit the browser. So 
any button s in a form need to cause an action to happen, but from the wtforms point of view, the 
only available action is to post the form, that's why there is only a submit button available.

If you want to do client side rendering, use AJAX and jquery/DOM is the better solution.

Does that make sense?

Related articles

Dynamic WTForms and multiple button/submitfields (all 5) RSS
├─ original   Sat 16th May 2020, 2:33pm, Nicholas T.
├─ THIS   Sat 16th May 2020, 3:54pm, Timothy F.
├─ reply 2   Sat 16th May 2020, 6:00pm, Nicholas T.  O.P.
├─ reply 3   Sat 16th May 2020, 10:08pm, Timothy F.
└─ reply 4   Sun 17th May 2020, 12:59pm, Nicholas T.  O.P.
This Page

Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020