snippet-library icon indicating copy to clipboard operation
snippet-library copied to clipboard

`gw-random-fields.php`: Fixed fields re-appearing in subsequent pages in a multi-page form.

Open lanresmith opened this issue 1 year ago • 1 comments
trafficstars

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2567849650/64749/

Summary

In a multi-page form, when the order of fields is randomized, on subsequent pages, fields may re-appear. Also, fields that are yet to be filled at all might even be re-ordered to previous pages! This PR ensures that for a multi-page form, fields are shuffled only once. This appears to be how the UX can be fixed.

lanresmith avatar Apr 19 '24 20:04 lanresmith

Dang. It's clear you've invested some time in this @lanresmith. There's an open PR that has an improved version of this snippet that accounts for some other scenarios. I'm curious if you could try that branch to see if solves this issue:

https://github.com/gravitywiz/snippet-library/pull/334

Let me know if it does not and I'll go ahead and set up a project to roll this entire snippet into GP Randomizer. Given your new product knowledge, I'll let you take lead on that. 🤘

spivurno avatar Apr 20 '24 13:04 spivurno