Allow Block-level visibility for account edit forms #143
Labels
hacktoberfest
PRs for this issue count towards Hacktoberfest contributions!
Type: Enhancement
Improvements existing features or code
Type: Feature Request
This issue is an idea or request for a new feature
Related: #142
Currently, block level visibility is globally disabled for blocks in an account edit form.
This was added intentionally. Visibility is disabled for registration forms because they're only ever displayed to logged out users and as the inverse account edit forms are only shown to logged in users... However, given the scenario that a user creates a field (on checkout) that's only visible to users of Membership A and they want to display that field on the account edit form to users only enrolled in that membership, they cannot do this and the field is now shown to users regardless of their enrollment in membership A (on the account edit form).
However... there are fields on the account edit form that we should disable visibility for entirely:
Email, password, and display name should always be visible on the account edit form otherwise users cannot change essential account fields. Other fields can be conditionally visibile.
All fields that have visibility options enabled should have the "logged out" option removed since logged out users can't view the form it doesn't make sense to provide the option.
The text was updated successfully, but these errors were encountered: