Title: Block previous page
Last modified: October 13, 2021

---

# Block previous page

 *  Resolved [eduardonie](https://wordpress.org/support/users/eduardonie/)
 * (@eduardonie)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/block-previous-page/)
 * After applying “.hide()” to the “pbPrevious” button I realized that it is still
   possible to go back to the previous page of the form through the browser.
 * How to ensure that the user does not go back to the previous page of the form
   via browser navigation buttons or smartphone navigation keys?

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/block-previous-page/#post-14967565)
 * Hello [@eduardonie](https://wordpress.org/support/users/eduardonie/)
 * This feature specific to your project must be implemented by yourself as part
   of the form’s code.
 * Every time the user jumps to a page, the plugin triggers the `cff-gotopage` event.
   The event callback receives an object as a second parameter with the following
   properties: `from` the index of the page the user comes (starting in zero), `
   to` the index of the new page, `form` the form’s DOM object.
 * I recommend you implement a function that listens to this event. The function
   must store a global variable with the index of most last page visited, and if
   the `to` attribute is lower than the global variable you must call the `fbuilderjQuery.
   fbuilder.goToPage();` and passing as its parameter an object with the properties`
   form`, `from`, and `to` similar to the event.
 * If you need a custom coding service to implement this behavior in your form, 
   you can contact me through my private website, [Click Here](https://cff.dwbooster.com/customization)
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Block previous page’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [previous](https://wordpress.org/support/topic-tag/previous/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/block-previous-page/#post-14967565)
 * Status: resolved