I’ve added an ACF custom field (of type File) to the Products pages on my web site. The field is called “asp_manual_url”, and it’s pointed to a PDF document in the Media Library.
In a CF7 form, I’ve included this code:
[dynamichidden manual_url "CF7_get_post_var key='asp_manual_url'"]
In the email section of the CF7 form, I’ve added this HTML code:
<p>Please <a href="[manual_url]">click here</a> to download the manual.</p>
The general idea is that the user fills out a form, and they receive an email containing a download link for the manual.
Unfortunately, the email doesn’t contain a proper URL, it contains what seems to be a post ID.
If I change the custom field to type Text, and enter a full URL into that field, that full URL does appear in the email. However, that means that I have to work out the full URL and enter it – it’s easier to use a File type and select a file from the media library.
I’m guessing that I need to make a change to the [dynamichidden]
line so that it returns a URL instead of a post ID. Unfortunately, I’ve looked through all the docs and can’t find anything. Can anyone help?