Hello @vjdoon,
Please try adding the following PHP snippet.
Save it as a PHP file, and upload it to /wp-content/mu-plugins/ directory, to make it run as a must use plugin:
<?php
add_action( 'wp_footer', 'wpmudev_keep_checkbox_disabled', 9999 );
function wpmudev_keep_checkbox_disabled() {
global $post;
if ( is_a( $post, 'WP_Post' ) && ! has_shortcode( $post->post_content, 'forminator_form' ) ) {
return;
}
?>
<script type="text/javascript">
jQuery( document ).ready( function($){
setTimeout(function() {
$('.forminator-custom-form').trigger('after.load.forminator');
},100);
$(document).on('after.load.forminator', function(event, form_id) {
if ( event.target.id == 'forminator-module-6' ) { // Please change the form ID.
$('#checkbox-1 input:checked').attr('disabled', 'disabled');
}
});
});
</script>
<?php
}
Replace 6 with your form ID on this line:
if ( event.target.id == 'forminator-module-6' ) { // Please change the form ID.
and checkbox-1 with your checkbox field name in this part:
$('#checkbox-1 input:checked').attr('disabled', 'disabled');
Let us know if you have any questions!
Best Regards,
Dmytro