I haven’t tried this, but it may be possible.
You’ll need to use a custom filter. The filter can be found here: https://github.com/zanematthew/zm-ajax-login-register/blob/5009adf4d2e091baf6febfc1c0fad23bbed5066a/src/ALRCore/ALRHtml.php#L33
What you’ll want to do is re-format the array of fields to your liking.
`function my_custom_filter( $fields ){
// my array of fields
}
add_filter( ‘zm_alr_register_form_fields’, ‘my_custom_filter’ );
`
You can view how the array is formatted here: https://github.com/zanematthew/zm-ajax-login-register/blob/master/src/ALRCore/ALRRegister.php#L119
Hey Zane, I inserted a check box on the form which links to the terms & conditions in my website but now I’m struggling with the code to validate it because i want it to be a requirement to check when you registering… Can you please point me to the right php or js file to do this
Thanks
i CREATED ONE LIKE THIS – NOW HOW WOULD WE VALIDATE THIS HECK BOX?
$this->prefix . ‘_terms_condition’ => array(
‘title’ =>__( ‘Terms & Conditions’, ZM_ALR_TEXT_DOMAIN ),
‘type’ => ‘checkbox’,
‘href’ => ‘‘,
‘required’ => true,
‘label’ => ‘Please tick the box to download terms & Conditions’,
‘extra’ => ‘autocorrect=”none” autocapitalize=”none”‘,
),
You should simply be able to add the HTML attribute of “required” to the extra
field, see below:
'extra' => 'autocorrect="none" autocapitalize="none" required',
Hey there,
I just started looking into this really useful plugin and I wonder where/how exactly you added your code, steak? Moreover, what might be the exact syntax to add custom fields? Do I need to get the Pro version to customize via hooks?
Thanks for you help in advance,
– Uwe