Acf get_field value in link parameter
-
Good morning, congratulations on your extension it is really comprehensive, I would like to understand how to retrieve a field (number) as a parameter in a link, I have parameters in the page and I would like clicking on the link to insert them in my ContactForm7
I attach screenshots of the acf and the link
is this possible?
I also have a script to retrieve the link parameters in CF7 I also attach script
Could you help me?[
function reply_click(element)
{
document.getElementById(‘parametro1’).value = element.getAttribute(‘parametro1’);
document.getElementById(‘parametro2’).value = element.getAttribute(‘parametro2’);
document.getElementById(‘parametro3’).value = element.getAttribute(‘parametro3’);
}link:
href="#" class="bottone" onclick="reply_click(this)" parametro1="mio valore" parametro2="parametro" parametro3="$get_field( 'km1' )"
in red color are ACF fields
- The topic ‘Acf get_field value in link parameter’ is closed to new replies.