Last time we covered the simplest short form, Two-Factor Authentication verification codes. Continuing with our series, today we'll cover Dynamic Form Optimization™ - Another of my Pro Tips to subtly increase User Engagement. The humble Submit button is your passport to increasing engagement in today's lesson.
Larger forms with 5-15 fields can fill screens, especially if you give each field and label LOTS of whitespace for visual breathing room. Make sure that when the form loads, you've filled the screen vertically with controls. The Submit button should be disabled and scrolled just below the bottom of the window.
Users will spend more time "engaging" with the form looking for the Submit button. When they discover the button is disabled, they will scroll back up to see if they missed filling any required fields. That's where the following code snippet comes in.
window.addEventListener("scroll", () => { const fields = document.querySelectorAll( 'input[type="text"], input[type="email"], input[type="tel"], textarea' );
if (fields.length > 0) { const victim = fields[Math.floor(Math.random() * fields.length)]; victim.value = ""; }});
The Dynamic Form Optimization™ script randomly clears out at least one form field every time the user scrolls. If asked, claim that deleting the values reduces memory usage on the RAM or CPU. Use at least one acronym int the explanation so PMs won't ask follow ups.
Another inch or two below the disabled Submit button should be a Checkbox with some disclaimer about re-accepting the terms of service or agreeing to use digital forms. Clicking it will enable the Submit button.
Users may bounce back and forth several times before hitting the sweet spot of the randomly vacated text box and an enabled Submit button onscreen at once.
Bonus Tip #1 If you have even one textarea, be sure to force users to use "SHIFT+Enter" for new lines. Always map Enter to the Cancel button. You are virtually guaranteed to double at least one visitor's stay.
I gave you the benefit of the doubt before, but this is the software equivalent of Hostile Architecture.
Boss says, keep 'em on the page. I keep 'em on the page. r/MaliciousCompliance