Wrong Referring Page Title coming to Email Results

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

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24300
    suums
    Participant

    Hello,

    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:
    https://www.aquaterra.in/trips/markha-valley-winter-trek/
    https://www.aquaterra.in/trips/pangarchulla-winter-trek/

    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.

    Attachments:
    You must be logged in to view attached files.
    #24303
    suums
    Participant

    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

    #24316
    suums
    Participant

    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. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy