Automattic / Automattic/jetpack

Forms: Add the possibility to add a link to the checkbox's label

Open
#41,014 5 comments 1 reaction 0 assignees View on GitHub
[Block] Form [Experiment] AI labels added [Feature Group] Content Management [Feature] Editor Experience [Feature] Forms [Feature] Forms Blocks [Pri] Low Customer Report [LEGACY] New Feature Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### What

When using the Form Block, the checkbox's text (=label) cannot include an embedded link.

![pDUlPBM4xGCpCsu4WV3IqGqz6pvtkX0ArOBxgoDi.jpg](https://user-images.githubusercontent.com/84539773/233832687-77d68a30-5dd0-4524-829f-8fffd1007adb.jpg)

A user requests to include the possibility for the text to include a link.

Context: 6212555-zd-woothemes

### Why

It makes sense for usability.

### How

_No response_

### Workaround

We can create this look: ![6A7GbfGW35T6md3vH53qSOkFQnPvbmaYNzsLKrU2.jpg](https://user-images.githubusercontent.com/84539773/233834159-a6b714d8-0ae4-470f-a4a8-7da5fb495b3b.jpg)

Add a Row block. Include the Checkbox and a Paragraph block. Adjust Checkbox layout settings to be `0 rem` and the Row block's padding to be `1rem`. Add a background color for even more visibility.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Jetpack Form Block implementation for the checkbox label and review any existing form-block tests. Confirm how label text is currently rendered, then define done as allowing an embedded link in that label while preserving the checkbox layout and verifying the resulting form behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.