Guys, I have a concept I'd like some feedback on. Basically...
I would like to be able to upload or specify the location of a related PDF form on the server when I create a Contour form (maybe in a config file you specify your PDF folder so you can choose the form from a list).
When adding fields to my Contour form, be able to map the field to a field in PDF specified above.
Create a "View PDF Form" link for each entry which would generate a new PDF by filling the form fields based on the form record.
Does this sound possible without modifying the base Contour code? Would the Contour API's support such a concept?
Hmmm. Off the top of my head, you'd struggle to map the Contour fields to the PDF ones when adding the form fields, without modifying the Contour base code (which you can't do anyway, as its not open source). You could try creating a Workflow that allows you to map the fields in the settings for the workflow, and have the workflow create the PDF for you though. Check out the Developer Docs and the Contour Shared Source package for examples on creating workflows.
Presumably you'd be using a third party PDF library to work out the form fields and fill out the forms. Mapping text fields shouldn't be too tricky, but mapping checkbox lists and more complex form field types might be trickier.
It'd certainly be an interesting project from a technical point of view! If you manage to get something like this working, you should definitely blog about it!
PDF Fillable Form Idea
Guys, I have a concept I'd like some feedback on. Basically...
Does this sound possible without modifying the base Contour code? Would the Contour API's support such a concept?
Hmmm. Off the top of my head, you'd struggle to map the Contour fields to the PDF ones when adding the form fields, without modifying the Contour base code (which you can't do anyway, as its not open source). You could try creating a Workflow that allows you to map the fields in the settings for the workflow, and have the workflow create the PDF for you though. Check out the Developer Docs and the Contour Shared Source package for examples on creating workflows.
Presumably you'd be using a third party PDF library to work out the form fields and fill out the forms. Mapping text fields shouldn't be too tricky, but mapping checkbox lists and more complex form field types might be trickier.
It'd certainly be an interesting project from a technical point of view! If you manage to get something like this working, you should definitely blog about it!
:)
is working on a reply...