Git Product home page Git Product logo

Comments (13)

pinksharpii avatar pinksharpii commented on July 24, 2024 1

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.

czpython avatar czpython commented on July 24, 2024

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.

pinksharpii avatar pinksharpii commented on July 24, 2024

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.

screen shot 2017-05-11 at 10 18 56 am
screen shot 2017-05-11 at 10 19 18 am
screen shot 2017-05-11 at 10 19 23 am

from aldryn-forms.

czpython avatar czpython commented on July 24, 2024

Hello @pinksharpii,
Can you post the request form data being sent to the server?

Something like:

sample-form-data

from aldryn-forms.

pinksharpii avatar pinksharpii commented on July 24, 2024

screen shot 2017-05-15 at 12 41 17 pm

from aldryn-forms.

czpython avatar czpython commented on July 24, 2024

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.

pinksharpii avatar pinksharpii commented on July 24, 2024

In settings.py, we have:
LANGUAGE_CODE = 'en-us'
Should it also be set in LANGUAGES variable?

from aldryn-forms.

czpython avatar czpython commented on July 24, 2024

Yes it should also be in LANGUAGES.

from aldryn-forms.

pinksharpii avatar pinksharpii commented on July 24, 2024

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.

screen shot 2017-05-16 at 8 14 07 am

from aldryn-forms.

czpython avatar czpython commented on July 24, 2024

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.

pinksharpii avatar pinksharpii commented on July 24, 2024

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.

czpython avatar czpython commented on July 24, 2024

No worries, good idea to check db directly :)

Can you post a screenshot of what the form structure looks like?
Something like this:

form-structure

from aldryn-forms.

pinksharpii avatar pinksharpii commented on July 24, 2024

I'm using Aldryn Bootstrap to structure the form fields - but they are all nested inside the Form element.

screen shot 2017-05-16 at 6 08 56 pm

from aldryn-forms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.