Automattic / Automattic/jetpack

Forms: Ability to autocomplete email address of logged-in users

Open
#29,924 6 comments 0 reactions 0 assignees View on GitHub
[Block] Form [Feature] Forms [Pri] Low Customer Report [LEGACY] Enhancement Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### What

Add the ability to pre-fill input fields on the Jetpack Form block with the logged-in user information, like their email address.

### Why

The user on 6088200-zen have some forms that should be filled out by their site members. My understanding is they need to do that routinely, so having the option to pre-fill as many inputs as possible would be helpful.

### How

I see this is already implemented in the "Subscribe" block. Maybe we could replicate the same to the Form block.

Contributor guide

Open the contributing guide

Research direction

Begin with the Jetpack Form block and compare the relevant user-prefill behavior in the Subscribe block. Trace how logged-in user information is handled and identify the surrounding tests; done means the Form block can pre-fill the email field for logged-in users while preserving the existing behavior for other users.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.