Hello Ofra,
This should be possible with a bit of custom code.
Could you please try adding the following snippet as a must use plugin.
Just copy the code, save it in a text editor as forminator-hide-save-btn.php, and upload it to /wp-content/mu-plugins/ directory on the server:
<?php
add_action('wp_footer', 'forminator_hide_save_btn', 9999);
function forminator_hide_save_btn(){
$form_id = 392; // Change to your form ID
global $post;
if ( is_a( $post, 'WP_Post' ) && !has_shortcode($post->post_content, 'forminator_form') ) {
return;
}
?>
<script type="text/javascript">
jQuery(document).ready(function($){
const pages = [1,2,3]; // Page numbers
setTimeout(function() {
$('.forminator-custom-form').trigger('after.load.forminator');
},100);
$(document).on('after.load.forminator', function(e, form_id) {
if ( e.target.id == 'forminator-module-<?php echo($form_id); ?>' ) {
hide_save_button();
function hide_save_button() {
//jQuery('.forminator-save-draft-link').show();
jQuery('.forminator-save-draft-link').css("visibility", "visible");
setTimeout(function() {
if ( $('.forminator-save-draft-link').length ) {
pages.forEach((page) => {
page_id=<code>#forminator-custom-form-<?php echo($form_id); ?>--page-${page-1}</code>;
if ($(page_id).is(':visible')){
jQuery('.forminator-save-draft-link').css("visibility", "hidden");
}
});
}
},150);
}
$(document).bind('ready ajaxComplete', function(){
});
$(document).bind('forminator.front.pagination.move', function(){hide_save_button()});
}
});
});
</script>
<?php
}
Change 392 to your form ID on this line:
$form_id = 392;
Change the page numbers in this part:
const pages = [1,2,3]; // Page numbers
For example, if you want to disable the button on pages 3 and 4, change it to:
const pages = [3,4]; // Page numbers
Hope this helps. Let us know if you need any further assistance!
Best Regards,
Dmytro