Replies: 0
Hi, I am using the Dynamic Contact Form 7 plugin to change the contents of a field by assigning shortcode. For that I have a hidden field called numsocio with this shorcode I have scheduled:
[dynamichidden numerosocio “CF7_ADD_NUMEROSOCIO nif=’nif’”]
I scheduled the shortcode is this:
function cf7_add_numero_socio($atts){
$a = shortcode_atts( array(
‘provincia’ => null
), $atts );
$nuevonumsocio = $a[‘nif’];
return $nuevonumsocio;
}
add_shortcode(‘CF7_ADD_NUMEROSOCIO’, ‘cf7_add_numero_socio’);
but does not receive the value of the form field. How do I have to send it or pick it up from the ShotCode to use as a parameter in the SQL query? Can you help?