• Resolved NIMBADA.

    (@borjamerino)


    I am using this plugin for both contact and inquiries as well as subscription forms.

    It is an explicit form, where in addition to the fact that the client must mark having read the Legal Notice and the terms and conditions of use, they must also mark that they wish to subscribe to the list.

    The problem here comes when the client writes his name, his email, clicks “I have given the legal notice …” and does not click on subscribe.

    This form, in addition to being explicit for this purpose, if the user does not click on the two checks, he does not subscribe but sends a form and the client may think that he has subscribed, when he has not.

    You would need that if the customer does not click on both options (for subscription forms), the form cannot be submitted for this case.

    Any suggestions for this? Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey @borjamerino,

    Are you using the premium version of our plugin? If yes, please reach out to us at “[email protected]” as providing support for premium products is not allowed here.

    Thread Starter NIMBADA.

    (@borjamerino)

    The version I am using is the free version along with CF7, which I was using previously. Before, I used another plugin for this, but decided to use this one.

    thanks for your attention

    Plugin Contributor Lap

    (@lapzor)

    hi,

    if it’s a CF7 form all this is handled by CF7, our integration just picks up the submission data after it’s already submitted.

    I assume the email being send out is also setup in CF7.

    I recommend to ask CF7 for support on how to make checkboxes required in their forms.

    Hope that helps. If you have any questions, please let me know!

    Thread Starter NIMBADA.

    (@borjamerino)

    🤔 I think in my case it is a problem of this plugin. CF7 works correctly. But if you used the intention of this plugin for a subscription form with CF7, this plugin cannot be required in configuration to allow submission. Maybe it’s a CF7 compatibility issue for that. Keep investigating. If you have any more suggestions, I would appreciate it. greetings, Happy day.

    Plugin Contributor Lap

    (@lapzor)

    How are you adding the checkbox to the form that you want to make required?

    You could use

    <input type=”checkbox” name=”mc4wp-subscribe” value=”1″ required />
    (switching to our custom integration)

    or I found this code that harish wrote a year ago, you can see if it still works:

     */
    add_filter( 'wpcf7_acceptance', function( $yes ) {
    	if( ! $yes ) { return false; }
    	return ! empty( $_POST['_mc4wp_subscribe_contact-form-7'] );
    });

    It’s using a CF7 filter as it is CF7 processing the form, not our plugin.

    Kind regards,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Required checkbox in subscription forms’ is closed to new replies.