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
- Allowed memory size of 268435456 bytes exhausted (tried to allocate 7146491840906359738 bytes)
- How do I get the author’s page url from their ID?
- Remove class that has been added by parent theme
- How to check from which page the user is coming to the current page?
- Design view breaking on Pages
- Execute only on a certain page
- How do I know what variables are passed in a filter/action and what their meaning is?
- Replace comment avatars and links at the same time
- Check if Product is in a Specific Category in Functions.php
- Adding ads code between comments
- Create Logout Link WordPress Admin Menu
- How to Display Image Meta underneath EVERY image in EVERY post
- Attaching a pdf to Contact Form 7 e-mail via functions.php [closed]
- Limiting woocommerce line_total decimal length
- Shortcode content filter?
- Display PHP within HTML values
- only show container with next/prev links if they exist?
- JS file work only in index page
- Unable to write multiple values back to ACF user field – PHP
- Error in custom php function doesn’t exist
- 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?
- Custom gallery in wp3.5
- Noscript not working as it should in wordpress site
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- Countdown to date function?
- calling a custom field value inside functions.php
- Custom meta box values are not getting saved for my custom post type
- Simple AJAX notification when the new post is added to the database
- Upload multiple files in randomly generated folder using wp_upload_bits
- Personalize checkout text
- WordPress check if current taxonomy has child
- get post id from wp_insert_post for get_template_part
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- Adding an interior ‘hero’ area with some added php title customization
- Custom Taxonomy Select Menu: Setting default option value?
- How to add author’s posts link (HTML + PHP) inside a function to output it
- Creating customized php files in theme folder
- Conditional On custom field plugin metabox
- Exclude function from running on a certain page
- How to set value selected using select2 jquery plugin
- Workaround for og:image unsupported webp image type, Yoast SEO?
- Disclaimer that will show every refresh of the page
- Using ACF Relationship field to set post type to draft or published status
- Add custom HTML data to Contact Form 7 mail?
- Providin exception to WordPress wp_nav_menu Custom CSS Classes
- Woocommerce My acount page
- How can i avoid duplicate same post in wp?
- Child theme overirde template-tags in a theme built on underscores in inc/template-tags
- Custom meta box is not displaying value showing tag as empty
- Menu not updating for logged in users after redirect
- Get field value and use as variable in php
- Make sticky post with FacetWP
- All categories options or All categories not Populating
- WordPress load javascript file if something… (after the page is loaded)
- Add class for the_post_thumbnail_caption()
- Getting page / post URL on publish and / or update
- Weird Behaviour: Not all WordPress Posts appearing
- Save the outputted image into the Media Library, with a different filename and extension
- Adding ID to a Listing but not inside WP_Query while
- adsense code showing on random post thumb
- WordPress display name string manipulation
- get_category only returning details for ‘uncategorized’
- How to extend the page editor?
- Accessing WordPress Functions get_permalink() in Vanilla PHP?
- How to return a Boolean for a page that is a subpage thru its name?
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!
- Undefined variable notice [closed]
- How to hide .js files on wordpress website using php or wp plugins or any? [closed]
- How do I get a function to work in single.php
- WordPress different custom tag being displayed in on tag list
- How to access admin menu labels and links on front-end?
- If you want to implement custom field-wise search functionality in the WordPress admin area
- How can we upload custom page files?
- How to get default variation ID (woocommerce)