ACF Form is an awesome tool. It can be used in plenty scenarios. But when it comes to front-end display, it can become tricky to make it compatible with the actual WordPress theme. In this tutorial we’ll see how to make ACF Form use Bootstrap 4 logic.
When using ACF Form as a post editor, ACF will display a virtual WYSIWYG field. Unfortunately the field isn’t required. In some cases it is interesting to make it mandatory.
We’re going to use acf/prepare_field, as it is called right before displaying ACF Form. ACF use the same method in front-end and back-end. So the way to target front-end is to use the is_admin() conditional.