Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lanresmith
Copy link
Contributor

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.

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!
@spivurno
Copy link
Contributor

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:

#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. 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants