Answer the question
In order to leave comments, you need to log in
How to pass data to flask modal window?
Greetings!
I am writing an application in Flask. Connected bootstrap.
I want to make a form in the form of a modal window.
Question: how to transfer data to it?
Answer the question
In order to leave comments, you need to log in
Make a separate view and upload it via javascript ajax. You can give it as html through a template, or json, whichever is more convenient.
Here is a small example, you need to conjure a little with it, but the principle is exactly the same - flask.pocoo.org/docs/0.12/patterns/jquery
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question