You don’t need much code for it. just goto contact form > select contact form > additional setting, paste below code.
document.addEventListener( 'wpcf7mailsent', function( event ) {
location = 'YOUR_PDF_URL';}, false );
Related Posts:
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- The values of custom fields are not available functions.php
- Problem with ACF shortcode with Repeater Field in WordPress? [closed]
- How to display posts by current user in a drop down
- ACF: how do I get the fields and its values of a specific group?
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- HTML Special Characters in URL string [closed]
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- Export Form Data to a CSV then send it as an attachment – contact form 7
- How can I count ACF sub_field with a certain value
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Delete images from media library when user deletes an image from ACF Gallery
- Advance custom fields variable with if statement & Function
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Page returning ID from array, how to return the correct values for post in acf wordpress
- Send foreach $_post method to contact form 7 [closed]
- ACF Date fileds to Age Convert [closed]
- Saving User Input to PHP Variable
- Contact form with dynamic dropdown and filter
- Custom WordPress Function – Adding items from Foreach Loop into an array and Updating Field based on array of IDs (ACF + WooCommerce)
- Creating posts with php-script + csv
- ACF number less than comparison not working
- “acf/load_field” Critical error upon saving/updating WooCommerce products [closed]
- Put ACF function output code the_terms
- How to capture number input from wordpress form into acf field in woocommerce
- add class to woocommerce single product template gallery thumbnails if media attachment ACF field toggled (true/false)
- Saving an array of dynamic repeater data as post_meta
- How can I apply_filters from inside a function?
- function to assign user role based on a field from usermeta
- what is the best practice to add new field to an api route
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Use DOMDocument with ob_start breaks my HTML code
- Auto-update products after they were published – Woocommerce
- How to prevent WP_Query function from returning all posts when empty?
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- JS file work only in index page
- Display a specific category of products in shop page and disable code for specific actions
- Woocommerce related product text
- esc_html_e() is not translating string in wordpress [closed]
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- Removing “wpautop” (auto tags) only on certain pages?
- Fatal error: Uncaught Error: Call to undefined function test()
- How to pick the default selected value in wordpress dropdown?
- Using WP-API and SSE not authenticating user ID
- Output ACF repeater on frontend user’s profile page (created with Ultimate Member) [closed]
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Validate functions before inserting then into functions.php
- How to retrieve current wordpress profile page URL?
- Firing schema via code in functions.php doesn’t work
- A non-numeric value encountered in /wp-includes/functions.php on line 68
- Get page that displays all children of taxonomy parent
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- get author_name from queried post
- Why ajax doesn’t work on certain wordpress hooks?
- Remove the first 5 characters of the_title and orderby that
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- How to call plugin function per site in a multisite?
- Print last modified date only on posts
- different id for same element visual composer [closed]
- WooCommerce: How can I get orders with a custom ID in order meta data object?
- Unread Repeater field IMG alt not working
- Unable to write multiple values back to ACF user field – PHP
- Tax query in pre_get_posts not working
- WordPress Gravatar filter is removing my custom attributes
- foreach loop still echoes array
- trigger html cleanup for all posts
- Error in custom php function doesn’t exist
- dynamic dependent select dropdown
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- Update grandchild repeater field with value per row
- Custom shortcode outputs plain text instead of HTML at top of post
- how can i use $_COOKIE[] + PostID to execute the below code?
- Return a numerical function value in Customizer controls
- getting logged in user info (wp-load.php) from parent directory
- How can I get the values of my WordPress $wpdb query in Jquery?
- What’s the uses of wp_cache_set() or wp_cache_add()?
- Get users that likes the post
- Blog posts repeat
- Ajax load more button for comments wordpress
- How to use thumbnail size of image if I’m only using src to get image
- Function to capture a value and store it in a variable
- How to abort saving data in save_extra_profile_fields function WordPress?
- Pass php dynamic variable to shortcode
- Slick + PHP + ACF + JQuery slide reveal not working
- Unique icons next to each WordPress menu item
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- How to create a php variable using WordPress the_title() function
- Keyword checking in Gravity Forms
- how to refresh div on template part?
- Child page menu in sidebar
- Populate editor with some content of a page with a page template
- Title Case WordPress Menu Items
- I want to load in a new class but only if the current page is single-movies.php
- Modify function to print tags/categories/exclude tags/categories/ number of posts
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- Search not showing all results
- Validation algorithm in checkout field
- Css loads very slow [closed]
- Catchable fatal error: Object of class stdClass could not be converted to string after WP 4.7