Exporting a submission as a PDF #1273
-
Currently evaluating Formie for a client as part of a recruitment system. The only issue we can see is their requirement to be able to export a submission as a PDF from the admin panel. Im thinking of some approaches to solving this and would love your thoughts or suggestion on how best to do it.
Thanks, another great Verbb plug-in! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
My other suggestion would be to create a custom exporter class (if you've got some module / PHP know-how), which when registered, you could add your own logic for how an export is run. use verbb\formie\elements\Submission;
use craft\events\RegisterElementExportersEvent;
use yii\base\Event;
Event::on(
Submission::class,
Submission::EVENT_REGISTER_EXPORTERS,
function(RegisterElementExportersEvent $event) {
$event->exporters[] = MyElementExporter::class;
}
); More info https://craftcms.com/docs/3.x/extend/element-exporter-types.html |
Beta Was this translation helpful? Give feedback.
-
Hi Jubal, we actually went with a different direction and ended up creating some templates which listed the submissions and used https://github.com/enupal/snapshot to generate PDF's for them. Functionally very similar to your feature request #1213 Hope this helps. |
Beta Was this translation helpful? Give feedback.
My other suggestion would be to create a custom exporter class (if you've got some module / PHP know-how), which when registered, you could add your own logic for how an export is run.
More info https://craftcms.com/docs/3.x/extend/element-exporter-types.html