I wrote a patch tonight to allow export and import of the PDF field mappings. This should help move the settings more easily between two sites, as was the use case for which I developed it.
It adds "Export field mappings" and "Import field mappings" links to the forms overview page. Clicking of these, well, brings you to a page for exporting or importing.
Exports are pure code at the moment...so save it to a file if you need it for later and copy it out when you're going to use it.
It's based somewhat on Node Export's import/export code, but simplified.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | fillpdf_wizonesolutions_958708_add_import_export_feature.patch | 9.3 KB | wizonesolutions |
Comments
Comment #1
wizonesolutionsHere's the patch. Just wanted to have an issue number first for the filename.
This needs to be reviewed, and if people think it's good I'll commit it.
Comment #2
wizonesolutionsJust bumping this to see if anyone wants to test it. Since I know that it works, and it doesn't affect other areas of the module, I'm going to commit it to -dev this weekend even if nobody gives feedback.
If it holds its own in the wild, it will become a new release.
Comment #3
mecmartini commentedGreat, I need this feature!
I'm starting to test it. Let you know what happen.
Comment #4
jsheffers commentedAWESOME!! I've been waiting for this! I haven't used this patch yet but in my opinion without this functionality this module isn't usable. I'll let you know how it goes! Thanks
Comment #5
wizonesolutionsGreat - let me know how this goes guys! I think it's the most ideal and flexible solution because it's not even tied to a PDF. You can import field mappings to a PDF that is entirely different and it will only match up the ones where the field keys match. It will ignore the rest safely. Or, if you added fields, then you'll only have to configure those.
It was super-useful for me and a fun exercise in writing an export/import routine :)
Let me know if it works, and I'll commit it. I was meaning to commit it anyway, but I'll wait since you are testing it.
Comment #6
mecmartini commentedFor me it worked well since a start to test it a month ago.
Thank's to it I saved a lot of work time!
So I think you can commit it ;)
Comment #7
wizonesolutionsSounds good...I was planning to commit this anyway. Let's see if jsheffers comments back, and in any case I will try to get this in on the weekend.
Comment #8
wizonesolutionsThis has finally been applied and committed. Marking fixed, so open up new issues if anything else with this needs to be tackled.
http://drupal.org/cvs?commit=470122
Comment #9
wizonesolutionsThis is in the new 6.x-1.13 release.
Comment #10
jsheffers commentedJust downloaded 1.13 and it works like a charm! No more losing all the field mappings when needing to make a change to the PDF! Great module with a great update.
The only update I would like would be a better way to download these PDF's. A friend and I developed a solution here http://drupal.org/node/869576 but maybe this could be included in the module.