I followed the MailChimp integration set-up and that works splendid.
But with the new GDPR data law I need to change our form a bit. We need to have an unchecked button they need to check it if they want to get a newsletter. So, I need to add an ‘if’ function in the code.
I thought it was easy and just added the following, but that doesn’t work
if ($form->getValue(‘quform_1_31’)==1){ $api = new MCAPI(‘api_key’); $listId = ‘list_ID’; $email = $form->getValue(‘quform_1_18’); $mergeVars = array( ‘FNAME’ => $form->getValue(‘quform_1_4’), ….