• Resolved syzygist

    (@syzygist)


    We need an opt-in checkbox, but it can’t be required to be checked to send the form, as that would make it not optional. Is there a way to make checking this field non-mandatory, and for the form submissions to show whether it was checked or not?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    A privacy field should be a mandatory field, so if you’re using this field for something else it’s best you adjust plugin itself. You only have to comment out 2 lines in file vscf-validate.
    Look for:

    $error_class['form_privacy'] = true;
    $error = true;

    Change into: (or remove)

    //$error_class['form_privacy'] = true;
    //$error = true;

    I know, upon plugin update you have to do this again, sorry for that.
    FYI: I will update plugin soon with full supprt for the Block Editor.

    Guido

    Thread Starter syzygist

    (@syzygist)

    Thanks for that. It’s a small change, I don’t mind making it each time I update the plugin. Unfortunately, it doesn’t quite accomplish what we are after, since the email notification just shows “Privacy consent: Opt-in to receiving SMS” whether the box is checked or not, so we have no way of knowing whether the sender has consented. Is there anything we can do to display that in the email notification, or would that be a big code rewrite?

    Plugin Author Guido

    (@guido07111975)

    Hi,

    You are right, it now doesn’t work as expected. Ignore my previous fix. This field is build to function as mandatory field.

    I don’t like saying this, but if you need this field I recommend looking for another contact form plugin, which makes it possible to add custom fields.

    Guido

    Thread Starter syzygist

    (@syzygist)

    Fair enough. VS Contact Form is, after all, a SIMPLE contact form. Thanks a lot for trying to help us out!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can the Privacy checkbox be made optional?’ is closed to new replies.