In this tutorial, you will learn how to allow users download a file after submitting a form in WordPress using plugins Elementor Pro and Advanced Custom Fields. By the end of this tutorial, your visitors will be able to fill out a form and receive a link to download an associated file. Let's get started!
Installing Plugins
To get started, make sure you have the Elementor Pro and Advanced Custom Fields plugins installed. You can find the download links in the video description.
Creating Custom Fields
Go to your WordPress dashboard and select “Custom Fields” and “Field Groups.”
Create a new group and add a field called “Download” with the desired file type.
Set rules so that this field is not displayed on public pages.
Archives Association
Associate the files you want users to download with the corresponding entries.
Creating a Pop-Up
Create a pop-up for download. Customize to your preferences.
Insert a button in the pop-up.
Download Link Setup
Define the link on the button using dynamic tags.
Set the URL to “Download” and select “Download” in the attributes.
Creating a Form
Create a new page where you want the form to appear.
Add the Elementor form widget and configure the fields you need.
Add a hidden field called “Download” and use dynamic tags to link it to the custom download field.
Set up an action to show the pop-up after submitting the form.
Save Form as Template
Save the form as a template with the name “form”.
Insert the Form into Pages
Insert the form on the pages where you want it to appear.
Theme Customization
If you don't have a custom theme yet, create one before continuing.
Function Settings
Add a function in the “functions.php” file to display the form where you need it using the “Shortcode in Menus” plugin.
Testing.
Verify that the form displays correctly on the selected pages. Submit the form to ensure that users receive the download links.
And that's it! Now your users will be able to download files after submitting a form in WordPress and Elementor. If you found this tutorial helpful, don't forget to give it a thumbs up, subscribe to the channel, and turn on notifications. If you have any questions, leave them in the comments of the video. See you in future tutorials!
Link to advanced custom fields
Link to show-hooks
If you need any plugin for this tutorial you can find it in the plugins page.