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

Editing submissions #156

Open
DigitaleJungle opened this issue Jun 19, 2022 · 2 comments
Open

Editing submissions #156

DigitaleJungle opened this issue Jun 19, 2022 · 2 comments

Comments

@DigitaleJungle
Copy link

DigitaleJungle commented Jun 19, 2022

Hi there!
I really love this extension and I'm using it for several of my websites.
One of them a website for a small event.
I would like to give my enduser the option to manage/edit some submissions so they can keep track of who has confirmed to attend.
I have a table listing all the submissions of a specific form using:
{% for entry in craft.contactFormExtensions.submissions.subject(Query).all() %}
and then I create a form for every row.
This works perfectly, but the forms create an new entry everytime.
Is there a way of writing this new or altered information into the database?
=> using the controller action action entries/save-entry gave me an "entry not found" error.

This would really help me out! thanks in advance!!

@rosskenney
Copy link
Contributor

Hi @SoundOfGeorge, Currently there is no ability in the plugin to edit the submissions beyond deleting them. I can look into this when I have some free time but it may not be quick. I would think we would need to add another service or adjust the save service to check if there is another field with the submission id listed. The save entry wont work as this is it's own table and not using craft entries. It would be a cool feature to have and then could be implemented into the CP to also allow editing there.

@rosskenney rosskenney self-assigned this Jun 20, 2022
@DigitaleJungle
Copy link
Author

DigitaleJungle commented Jun 21, 2022

Hi Ross,
Good to know i don't have to look any further.
I would do it myself if I could but i'm affraid that kind of stuff is way out of my comfort zone.
I think this would indeed supercharge the extension and really have a solution for all kind of purposes.
Thank you in advance, to consider this :)
You'll see when you can pick it up or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants