Can you make a custom gutenberg block that allows the gutenberg editor within it?

Shucks, no sooner than the second I desperately resort to asking here, I run into the answer. So for anyone else who just wants a straight answer and not some 45 minute video that never gets to the point… acf_register_block_type( array( ‘title’ => __( ‘Wrapper’, ‘client_textdomain’ ), ‘name’ => ‘wrapper’, ‘render_template’ => ‘partials/blocks/wrapper.php’, ‘mode’ => … Read more

ACF: If field contain a specific value, update value in another field programatically

Did you trying something like this in a JS script? Assuming you wants to edit the service text field. jQuery(document).ready(() => { const textfield_type = document.querySelector(‘input[name=”type”]’); const textfield_service = document.querySelector(‘input[name=”service”]’); const updateField = () => { if (textfield_type.getAttribute(‘value’) === ‘Houses’ && textfield_service.getAttribute(‘value’) === ‘2’) { textfield_service.setAttribute(‘value’, ‘NOT AVAILABLE’); } // … other rules } // … Read more