Questions tagged [survey]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
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 "...
Yuvan Seth's user avatar
0 votes
0 answers
17 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 ...
KayO133's user avatar
  • 33
0 votes
1 answer
51 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") ...
lashem's user avatar
  • 1
0 votes
2 answers
49 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?
user11913821's user avatar
1 vote
2 answers
2k 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 * ...
Ryan Hinchliffe's user avatar
0 votes
1 answer
79 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/...
Ryan Hinchliffe's user avatar
0 votes
1 answer
29 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 ...
Omi11's user avatar
  • 9
0 votes
1 answer
85 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 ...
Tanishq Kumar's user avatar
0 votes
1 answer
356 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 ...
Amber's user avatar
  • 9
0 votes
1 answer
86 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 ...
Parthiban Bala's user avatar
0 votes
0 answers
48 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, ...
Sigust's user avatar
  • 1
0 votes
0 answers
278 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....
AK2150's user avatar
  • 11
0 votes
1 answer
158 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 ...
John's user avatar
  • 7