New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form returning only first value/tag to python #1
Comments
are you sure you have the "multiple" attribute in your select? i've updated the code pen to post actual data and this is what i got |
yes, tried different positions for it as well. this is the code for the html in python:
and this is the request bit in python: @app.route('/process_input',methods=['POST']) EDIT: very sorry for the messy formatting, can't figure out how to have it display properly |
yes, turns out you need to have name="keywords[]" otherwise it doesn't work then you should use keywords= request.POST.getlist("keywords[]") can you let me know if that's better? |
Yes! Amazing, thank you! |
@staminem no worries. i've updated the demo accordingly and added a note in the readme |
Hi, thanks so much for this simple yet awesome feature. I have one small issue when using it. I want to use it solely for entering "new" tags, so without a "lookup" functionality, within a form in html. I want to pass the data entered to python back-end. However, python only receives the very first value/tag as opposed to the whole list of tags entered. Any idea what may be causing this?
Thanks in advance!
Stefan
The text was updated successfully, but these errors were encountered: