I want to prepopulate the email input field for my mailchimp signup form:
<input data-drupal-selector="edit-mergevars-email" class="form-email required form-control" type="email" id="edit-mergevars-email" name="mergevars[EMAIL]" value="" size="25" maxlength="254" required="required" aria-required="true">
I tried
/newsletter?edit[mergevars][EMAIL]=test@test.com
But the result is an Call to undefined function check_plain() error.
But if I remove the check_plain() function from prepopulateController.php line 65 like this
$form['widget'][0]['value']['#value'] = $request_slice;
(only for test purposes!!)
then the email field is not prepopulated.
My question is:
How can I prepopulate the field with name="mergevars[EMAIL]" ?
Thank you.
Comments
Comment #2
heddnLots of new features are now available.