Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi if you know about PHP here is an action hook you can test.

    Thread Starter smdami

    (@smdami)

    Thanks, but I’m not clear what action I can take after the email has been sent. Ideally I would like to pass in the name of an attachment via the form shortcode. Alternatively, do you think it possible to append to the “Success page additional HTML” using this hook? In which case, I could store the pdf URL in a hidden field, then retrieve it and append it to the “Success page additional HTML” before it gets written out. I appreciate any additional insights you can provide.

    The plugin developer will look further into your request.

    You can always go to the following website stackoverflow. There is always someone there who is willing to help.

    Hi, you would need some custom programming. I suggest Ken Carlson, he co-developed the plugin

    Thread Starter smdami

    (@smdami)

    Thanks for the response. There are other solutions available, was just hoping there was a documented way to do so with FSCF. BTW, Ken seems to be having some problems of his own. Error establishing a database connection…

    Thread Starter smdami

    (@smdami)

    Wanted to share my solution:

    Used the shortcode:
    [si-contact-form form=’1′ hidden=’mypdf=/uploads/2015/11/mycustompdf.pdf’]

    And the si_contact_thank_you_message filter:

    function pdf_fscf_thanks($ctf_thank_you, $form_id_num) {
    $pdfurl = ”;
    if ( isset( $_POST[‘mypdf’] ) ) {
    $pdfurl = FSCF_Util::clean_input( $_POST[‘mypdf’] );
    return $ctf_thank_you . ‘<p>Click here to download the requested document</p>’;
    } else {
    return $ctf_thank_you;
    }

    }
    add_action(‘si_contact_thank_you_message’, ‘pdf_fscf_thanks’);

    Thank you for sharing your solution. I am sure many will use it.

    Kind regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Attachment or URL via shortcode’ is closed to new replies.