"The field is required" - WordPress plugin issue after an update.

In earlier version of WordPress, they did not have an acceptance checkbox type. All we did was by adding an empty checkbox and added the label right next to it, which was working perfectly.

[checkbox* gdpr "" ]

but now it gives an error "The field is required" even though we clicked on it.

The best way to get rid of this is using the acceptance field,

But if you must use the checkbox option you can simply add a " ", which will do the trick.

<label class="d-flex">
[checkbox* gdpr "&nbsp;"]
<span class="pl-2">stickabat.com</span>
</label>

sTickaBaT
Please login to comment
  • latest comments
  • Total 0 comments