Questions tagged [survey]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

Can' get alert() to work in Survey

I wanted to alert the user if he hasn't filled out the name field of my form using Javascript. But when I hit submit without filling the name, the alert doesn't popup. Here's my code {% extends "...
0
votes
0answers
16 views

Why is /sheet is absolutely blank?

Nothing is appearing on /sheet, not even the header. However, the .csv file is generating as intended. Can you help figure out what is wrong with my process? {% extends "layout.html" %} {% block ...
0
votes
1answer
38 views

pset7 Survey data is displayed on one line, not as a table

I successfully loaded the csv file as a list of lists, passing that list over the the sheet template. Like so: @app.route("/sheet", methods=["GET"]) def get_sheet(): with open("survey.csv", "r") ...
0
votes
2answers
31 views

How does flask work

I typed: flask run and flask runs ok, but I cannot 'serve' form.html, why is this and how can I see form.html in a browser?
0
votes
2answers
1k views

How do I turn debug mode ON in flask?

I have tried export FLASK_ENV=development then adding app.config['DEBUG'] = True to my program but i keep getting * Serving Flask app "test.py" (lazy loading) * Environment: development * ...
0
votes
1answer
57 views

Survey,clarification on What does methods=["GET"] and methods=["POST"] do?

@app.route("/form", methods=["POST"]) the methods=["POST"] what specifically is that doing ? is it just saying any time that /form is posting something the below functions will be triggered/...
0
votes
1answer
27 views

My jinja not working like it should pset6 survey

So I'm currently working on pset7 survey and am about to finish. I just have to display my table in sheet.html. When run, I only get the headers right and afterwards I get nothing. Am I doingsomething ...
0
votes
1answer
71 views

confusion about CSVs and Jinja in pset7--generating a table

I'm deeply confused about how CSV files work in this context. Below is my application.py code and my form.html code; I can't see how to use Jinja to call on the information stored in my CSV file. In ...
0
votes
1answer
321 views

survey : ValueError: too many values to unpack (expected 4) in template sheet.html

problem is when i run the application creating csv out of form.html and later try to represent that in a table in sheet.html after opening the list i made out of reading csv file , and try to access ...
0
votes
1answer
82 views

javascript not running in pset7 survey

I finished form in html. I wrote script below form in script in body. It is not having any syntax errors (hopefully). entire script is a single function called validate() which returns true or false ...
0
votes
0answers
47 views

PSET7 Survey Submit50 not recognizing select menu

I have finished the Survey problem and everything works perfectly, yet for some reason when I submit it my select menu is not recognized by Submit50 and it marks the "has one or more select menus, ...
0
votes
0answers
276 views

Pset7 survey table not loading

For Pset7 Survey, my table is not loading. My error checking is now working, but when I submit a form, it simply shows me an ugly list of all the <thead>. May somebody please help? Application....
0
votes
1answer
147 views

pset7 survey - for loop to give alerts not working properly, why not?

I can't figure out what's wrong with my for loop, written in Javascript. It isn't functioning as needed. 1- It only sometimes gives the javascript alert message saying "Please make sure you have ...