Comments (13)
I think we got it figured out. I think the last issue was due to us changing some things around with the sites.json file in the project.
But adding the language code to LANGUAGES definitely fixed the form overall, thanks.
from aldryn-forms.
Hello @pinksharpii,
Is the error message a server error or a client facing error?
Can you provide us with a screencast of the issue?
from aldryn-forms.
I'm not sure. I have 3 screenshots. The first is just the error it's displaying - you can see in the second screenshot, it's coming from the Error message field in the form settings. Lastly, the recipients - you can see I am a recipient. I'm not sure if this helps. But I'm really not getting much of anything for an error. Everything is a 200 response in the Network tab in Chrome.. and nothing in my Django project error log.
from aldryn-forms.
Hello @pinksharpii,
Can you post the request form data being sent to the server?
Something like:
from aldryn-forms.
from aldryn-forms.
Strange.. is en-us
in your settings.LANGUAGES
?
There's a hidden language field, its possible that if en-us
is not in your settings.LANGUAGES
, the form fails validation.
from aldryn-forms.
In settings.py, we have:
LANGUAGE_CODE = 'en-us'
Should it also be set in LANGUAGES variable?
from aldryn-forms.
Yes it should also be in LANGUAGES
.
from aldryn-forms.
Adding en-us to the LANGUAGES seemed to work. Thank you.
I'm running into another issue now though - not sure if it's related. No form data from the fields is getting sent with the form. Based on the documentation I can't tell what, if anything, I did wrong.
from aldryn-forms.
Can you get the id of that form submission record and then in the shell run:
from aldryn_forms.models import FormSubmission
submission = FormSubmission.objects.get(pk=your_submission_id)
print(submission.data)
from aldryn-forms.
I'm not sure where I need to run that. Sorry, I'm new to this. If I have my server running and do that, nothing happens. I get an error when trying to do it in the Python Console in PyCharm.
I just went into the database instead. And data is just empty [] in the table.
from aldryn-forms.
No worries, good idea to check db directly :)
Can you post a screenshot of what the form structure looks like?
Something like this:
from aldryn-forms.
I'm using Aldryn Bootstrap to structure the form fields - but they are all nested inside the Form element.
from aldryn-forms.
Related Issues (20)
- Advanced form allows to create a user, but can't select the created user because it's created without the superuser flag
- Field instances require the `name` field to be unique, but don't enforce it which leads to errors HOT 1
- In advanced form available email variables are displayed with raw html tags HOT 1
- Make the aldryn-forms file field to send the direct link to file in the email
- aldryn-forms always redirects on the default language after submit
- ImportError: cannot import name 'python_2_unicode_compatible'
- FormSubmission is missing "WHO submitted the form" (ready to make a PR)
- Form Validation (other than simple required and length)
- Suggestion - Select field (More fields to edit)
- xlrd / xlwt requirements not specified
- Edit output form
- EmailBackend connection is not being closed
- Select field not showing the options HOT 1
- Upgrading to version 6.2.1 causes "KeyError FormPlugin" HOT 1
- Empty form submission saved if redirect is enabled HOT 1
- When using simple captcha invalid requests create empty form
- Hedden Field default value
- Error when exporting form entries
- When submit the form it ignores captcha field
- Error when submitting the form OSError at / HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aldryn-forms.