Beta 6v3: DC on button URL

For each product on this page: https://newengage.site/catalogue/

The yellow button is intended to kick off an email, and has a URL generated like this:

mailto:reuse@engagews?subject=Website%20enquiry%20on:%20—

The hyphens should have the DC field inserted, but I can’t make it work.

The DC field ‘reference’ is successfully picked up within the column.

@bill_hodgson, please provide your login details so I can take a look at this. Thanks!

See above for the login details

Thanks, @bill_hodgson! I believe this is due to a processing error we’ve uncovered in some spots with DC in general. We are looking into it and hoping to have it resolved in the next release.

I just tried Pro6 B4 this bug remains:

Input: Website enquiry on {{dc:post:title}} ({{dc:acf:post_field field="reference”}})
Output: Website enquiry on Bread bin ()

@bill_hodgson,

I was confused on this at first as I know this is working, so I just went through and setup the exact same situation on my local site by adding an ACF Pro field to my page, calling it “Reference” with a slug of reference, and then inputting a random string.

I then wired up Website enquiry on {{dc:post:title}} ({{dc:acf:post_field field="reference"}}) as the “Subject” line for a mailto: link using the Button Element. When I output all of that on the frontend of my site and click on the Button, I can see that it is working properly:

After that worked, I then tried pasting in your exact string and got an error. After puzzling for a moment, I noticed that one of your " which should be showing up as plain text double quote is instead a styled double quote. Check the at the end of reference below:

Website enquiry on {{dc:post:title}} ({{dc:acf:post_field field="reference”}})

Perhaps you copied this in from a rich text-editor somehow, but always ensure that your strings are escaped to plain text. If you delete that styled double-quote and replace it with a normal one, this should be working for you.

Hopefully that helps!

Thanks - I actually swapped the double quote for single quotes and it’s now working. Solved!

Great, @bill_hodgson!