How to select template using query string
-
I would like to use more than one template per form. I want to do this by having a default template, and then various links that include template=template1.php , template=template2.php etc.
I setup the default using this in my configuration:
global $gf_pdf_default_configuration; $gf_pdf_default_configuration = array( 'template' => 'custom-template.php', 'pdf_size' => 'A4' );Which works fine, but when I try to load the PDF using &template=custom2-template.php it still uses the default configuration.
For example:
http://domain.com/?gf_pdf=1&fid=26&lid=415&template=custom2-template.php&html=1I’ve read the advice here and here but didn’t find a solution, just advice implying you can do this but nothing to say if it needs specifical configuration.
Is there something I need to do to make template= in the query string work in addition to a a default template?
The topic ‘How to select template using query string’ is closed to new replies.