-
Notifications
You must be signed in to change notification settings - Fork 9
Labels
enhancementNew feature or requestNew feature or requestformulusFor issues related to the Formulus React Native applicationFor issues related to the Formulus React Native application
Description
Component
-
formulus (React Native mobile app)
-
formulus-formplayer (React web app)
-
synkronus (Go backend server)
-
synkronus-cli (Command-line utility)
-
Documentation
-
Other (please specify)
Feature Description
Add the ability to show/hide password text in password input fields within Formulus(Particularly login). Users should be able to toggle password visibility using an eye icon button or similar control within the password input field.
Problem Statement
Currently, when users enter passwords in Formulus forms, the text is hidden by default (as expected for security), but there is no way for users to temporarily reveal the password to verify what they've typed. This can lead to:
- User frustration when entering complex passwords, especially on mobile devices where typing errors are more common
- Increased likelihood of password entry errors that may not be discovered until form submission
- Poor user experience compared to standard mobile app password input patterns
- Accessibility issues for users who need to verify their password input
Proposed Solution
- Add a toggle button (eye icon) to the right side of password input fields in Formulus
- When the eye icon is tapped, toggle between showing the password as plain text and hiding it with dots/asterisks
- The default state should be "hidden" (secure)
- The icon should visually indicate the current state (e.g., eye-open when password is visible, eye-closed when password is hidden)
- This should work for all password input fields defined in form schemas (fields with
format: "password"ortype: "string"with password-related properties)
Alternatives Considered
- Always show password: Not secure and goes against security best practices
- Show password on long-press: Less discoverable and may not be intuitive for all users
- Separate "show password" checkbox: Takes up additional UI space and is less elegant than an inline toggle
- Auto-reveal on focus: Could be distracting and may reveal passwords unintentionally
Additional Context
- This is a standard UX pattern in modern mobile applications (iOS, Android, React Native apps)
- Many popular apps (banking, social media, productivity) implement this feature
- The implementation should follow React Native best practices and be consistent with Formulus's existing design system
- Consider accessibility: the toggle button should be properly labeled for screen readers
- The feature should work seamlessly with existing form validation and submission flows
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestformulusFor issues related to the Formulus React Native applicationFor issues related to the Formulus React Native application