Title: codi0's Replies | WordPress.org

---

# codi0

  [  ](https://wordpress.org/support/users/codi0/)

 *   [Profile](https://wordpress.org/support/users/codi0/)
 *   [Topics Started](https://wordpress.org/support/users/codi0/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codi0/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codi0/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codi0/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codi0/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codi0/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Any recommended solution for “skip to question X”?](https://wordpress.org/support/topic/any-recommended-solution-for-skip-to-question-x/)
 *  Thread Starter [codi0](https://wordpress.org/support/users/codi0/)
 * (@codi0)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/any-recommended-solution-for-skip-to-question-x/#post-18621332)
 * No problem. I’ve created a bit of custom js to get round the empty page issue.
   It’s not bullet-proof (E.g., won’t work if the page is loaded via ajax), but 
   sharing here in case it’s ever useful for anyone else.
 *     ```wp-block-code
       <script>document.addEventListener('DOMContentLoaded', function() {		const pages = document.querySelectorAll('.forminator-pagination');	if(!pages) return;	function skipEmptyPages(direction = 'next') {		let currentPage = null;		for(let i=0; i < pages.length; i++) {			if(!pages[i].hasAttribute('hidden')) {				currentPage = pages[i];				break;			}		}		if(!currentPage) return;		const height = currentPage.getBoundingClientRect().height;		if(height == 0) {			const btnSelector = direction === 'next' ? '.forminator-button-next' : '.forminator-button-back';			const btn = document.querySelector(btnSelector);			if(btn) btn.click();		}	}	// Listen for page changes	document.addEventListener('click', function (e) {		if(e.target.closest('.forminator-button-next')) {			setTimeout(function() {				skipEmptyPages('next');			}, 10);		}		if(e.target.closest('.forminator-button-back')) {			setTimeout(function() {				skipEmptyPages('back');			}, 10);		}	});});</script>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Any recommended solution for “skip to question X”?](https://wordpress.org/support/topic/any-recommended-solution-for-skip-to-question-x/)
 *  Thread Starter [codi0](https://wordpress.org/support/users/codi0/)
 * (@codi0)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/any-recommended-solution-for-skip-to-question-x/#post-18621116)
 * Apologies for the late reply.
 * I tried using field groups, but abandoned that approach once I realised they 
   couldn’t be nested inside each other. In the end I used the show/hide on individual
   questions, which does work, though a bit more tricky to setup and maintain than“
   skip to X”. If that could be added in a future version, it would be a nice QoL
   improvement. 🙂
 * I do have one related follow-up question. I would ideally like to split the form
   into multiple pages, using the page break element. The one problem I come across
   when using them is that the user sometimes gets presented with an empty page (
   because a previous choice causes all the questions on that page to be hidden).
 * What’s the best way to auto-skip an empty page (forwards if user has pressed 
   next, backwards if user has pressed previous)? I imagine a custom js snippet 
   of some kind?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] MySQL error when creating custom table](https://wordpress.org/support/topic/mysql-error-when-creating-custom-table/)
 *  Thread Starter [codi0](https://wordpress.org/support/users/codi0/)
 * (@codi0)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/mysql-error-when-creating-custom-table/#post-17744091)
 * Thanks for the quick response. I’ll look out for the next version. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment forms, Buy now buttons, and Invoicing System | GetPaid] Tidy up css/js injection](https://wordpress.org/support/topic/tidy-up-css-js-injection/)
 *  Thread Starter [codi0](https://wordpress.org/support/users/codi0/)
 * (@codi0)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/tidy-up-css-js-injection/#post-13927486)
 * Thanks, appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)