python - How can I create an HTML page that depends on form inputs? -
for starters - using combination of html, python+flask/jinja
i have html page contains basic form. when users input data form, passed through python/flask script , populates different html template inputted form values.
what need accomplish creating variations of final html template based on fields users choose in beginning form. e.g.
the flow appear as:
user selects fields use in html form > data passed through flask app > data populated in final html template, designed around fields selected in original form.
the final html template series of tables. based on fields user selects in form, tables needed , others not. whether user selects field should determine whether or not table appears in final html templates code or not.
i'm not entirely sure tools can use accomplish this, , whether need supplement flask/jinja. input.
flask+jinja should work you're trying do. essentially, first page form number of form elements. when form submitted, data gets passed flask app can extract users selections. using these selections can generate/populate next html page.
since user can seemingly select combination of fields, template second html page should contain possible tables , show selected ones using if...else
statement
Comments
Post a Comment