Progress bar start with 0% needed
-
Hi
I needed progress bar start with 0% now it is start with 11%.
if you have any solution for that.
-
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-pluginsKind Regards,
Nithin
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 2 years, 4 months ago by
divya4321.
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-
This reply was modified 2 years, 3 months ago by
Kris - WPMU DEV Support.
-
This reply was modified 2 years, 3 months ago by
Kris - WPMU DEV Support.
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 -
This reply was modified 2 years, 4 months ago by
The topic ‘Progress bar start with 0% needed’ is closed to new replies.