-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Afform - Store submissions in a new database table #21105
Conversation
(Standard links)
|
371a75f
to
7ce7523
Compare
a9f6576
to
03383dc
Compare
I originally created this PR because I thought it a prerequisite for uploading files, but I now think that data can be passed via JWT. So this could be an opt-in behavior and not all forms need to save their submissions. |
03383dc
to
eb856c3
Compare
eb856c3
to
7f5e049
Compare
@seamuslee001 I've added a setting to make logging submissions optional, per @totten's suggestion, which should make this easier to merge. |
thanks @colemanw I'll take a look shortly |
This adds the `civicrm_afform_submission` table and accompanying api entity, and a new Afform setting "create_submission" which will store a submission record whenever a form is submitted.
7f5e049
to
e6772fc
Compare
PRIMARY KEY (`id`), | ||
CONSTRAINT FK_civicrm_afform_submission_contact_id FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE SET NULL | ||
) | ||
ENGINE=InnoDB ROW_FORMAT=DYNAMIC; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seamuslee001 I manually added ROW_FORMAT=DYNAMIC
but in case you want to tackle getting civix
to do it...
I R-runed this locally and confirmed the upgrade works and confirmed logging works as expected as well MOP |
Overview
This adds the
civicrm_afform_submission
table and accompanying api entity for logging form submissions, and adds a new option: