• Resolved divya4321

    (@divya4321)


    Hi

    I needed progress bar start with 0% now it is start with 11%.
    if you have any solution for that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @divya4321,

    I’m afraid, what you notice is the expected behaviour, the progress bar is meant to highlight the pagination percentage, for example, if there are only two pages on the form, the first one is 50% of the form and the second one is another 50%.

    We do have plans to improve the workflow regarding this down the roadmap so that it would start with 0% from the start. However, at the moment there isn’t any exact ETA.

    In the timebeing, you could try this snippet as a workaround:

    <?php
    add_action( 'wp_footer', 'change_progress_form' );
    function change_progress_form() {
    ?>
    <script type="text/javascript">
      setTimeout(function(){
    	jQuery(document).ready(function($) {
    
    		var progressPercentage = 0;
    		
    		console.log('Progress percentage: ' + progressPercentage + '%');
    
    		$('#forminator-module-283 > .forminator-pagination-progress > .forminator-progress-label').text(progressPercentage + '%');
    
    		$('#forminator-module-283 > .forminator-pagination-progress > .forminator-progress-bar span').width(progressPercentage + '%');
     
    	});
      }, 30);
    </script>
    <?php
    }
    

    You’ll have to update the following lines with your form ID, suppose your form ID is 123 then the following line will change from:

    $('#forminator-module-283 > .forminator-pagination-progress > .forminator-progress-label').text(progressPercentage + '%');
    
    $('#forminator-module-283 > .forminator-pagination-progress > .forminator-progress-bar span').width(progressPercentage + '%');

    To:

    $('#forminator-module-123 > .forminator-pagination-progress > .forminator-progress-label').text(progressPercentage + '%');
    
    $('#forminator-module-123 > .forminator-pagination-progress > .forminator-progress-bar span').width(progressPercentage + '%');

    You can apply the above code as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Kind Regards,

    Nithin

    Thread Starter divya4321

    (@divya4321)

    thank you it is fixed but if i click prevous button again the progress bar showing 11%.

    In checkbox without submit the form showing required alert msg . if you have any solution for that.

    • This reply was modified 1 year, 1 month ago by divya4321.
    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @divya4321

    Can you export your form, upload it to Google Drive, and share a link in your next reply so that we can review both issues on our side?

    Also, if possible share site URL where form is located so we can review any errors in the broswer console, in case we will be not able to replicate issues on out side.

    Kind Regards,
    Kris

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @divya4321 ,,

    We haven’t heard from you for over a week now, so it looks like you don’t have more questions for us.

    Feel free to re-open this topic if needed.

    Kind regards
    Kasia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Progress bar start with 0% needed’ is closed to new replies.