Skip to content
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

Viewing Submissions #46

Open
nevsie opened this issue Oct 12, 2015 · 6 comments
Open

Viewing Submissions #46

nevsie opened this issue Oct 12, 2015 · 6 comments

Comments

@nevsie
Copy link

nevsie commented Oct 12, 2015

https://github.com/xodigital/Formerly#viewing-submissions

Am i being dopey - i cannot get this to work in any shape or form on latest version?

@wiso1234
Copy link
Contributor

did you sort this out?

@nevsie
Copy link
Author

nevsie commented Oct 22, 2015

Unfortunately not...

On Thu, Oct 22, 2015 at 2:31 PM -0700, "Andrew Wisener" [email protected] wrote:
did you sort this out?


Reply to this email directly or view it on GitHub:
#46 (comment)

@wiso1234
Copy link
Contributor

can you add a code sample

@nevsie
Copy link
Author

nevsie commented Oct 22, 2015

Will do tomorrow .

But used your example and thinned it back a bit to remove non relevant variables.

On Thu, Oct 22, 2015 at 2:36 PM -0700, "Andrew Wisener" [email protected] wrote:
can you add a code sample


Reply to this email directly or view it on GitHub:
#46 (comment)

@nevsie
Copy link
Author

nevsie commented Oct 23, 2015

The below is the full error and code snippet in one! Hope it helps. N
It is as per your example with the refinement of country removed.

Template Error
Method "submissions" for object "Craft\FormerlyVariable" does not exist
/chroot/home/heher/heheroes.com/craft/templates/test.html(2)

1
2 {% set submissions = craft.formerly.submissions.form('heartOfThe').sort('dateCreated desc') %}
3
4 {% for submission in submissions %}
5 Name: {{ submission.nameOfBus }}
6 Town: {{ submission.town }}
7 {% endfor %}

2015-10-23 18:02:37 Apache / Craft 2.4.2696

@dowadidi
Copy link

I have the same issue. Has this been resolved?

dowadidi pushed a commit to dowadidi/Formerly that referenced this issue Dec 5, 2016
Making displaying the submissions work. (Issue enigmadigital#16 and enigmadigital#46)

Example twig tags:
{# get latest submission values #}
{% set submissions = craft.formerly.submissions.get() %}
{% set submission = submissions.contactForm_email(':notempty:')[0] %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants