Wrong Referring Page Title coming to Email Results

Home Forums Quform WordPress Wrong Referring Page Title coming to Email Results

This topic is: resolved

This topic contains 2 replies, has 1 voice, and was last updated by  suums 11 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #24300



    You had helped me out earlier by providing the code attached for the functions.php file so that the Referring Page title comes as a Subject and Title inside the Form Content

    Screenshot below. All was fine till three days ago but the problem now is the whenever the form is submitted the wrong Title is coming.
    You Can try clicking the Book Now button on any Trip Page here:

    Could you please check with this has suddenly started happening? No changes have been made to the Theme Files or Quform of late as well.
    Login Details emailed via CodeCanyon with the Topic Title as reference.

    You must be logged in to view attached files.


    Exact code being currently used:
    add_action(‘quform_pre_display_1’, function (Quform_Form $form) {
    $postId = url_to_postid(Quform::getHttpReferer());

    if ($postId > 0) {
    $post = get_post($postId);

    $form->setValue(‘quform_1_19’, $post->post_title);

    QuForm Form Name on WP Website: Trip Enquiry



    Working fine now. Closing post.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Be inspired. © 2018 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy