Page MenuHomePhabricator

HTMLRadioField: Support per-option help texts
Open, In Progress, MediumPublic

Description

In T323270: Allow mentors to select their preferences when they signup, the Growth team wants to add explanatory text to a radio field (HTMLRadioField), see screenshot:

Capture d’écran_2022-11-21_18-50-29.png (147×867 px, 31 KB)

Unfortunately, with the current form descriptors, this is not possible. Fortunately, in OOUI's RadioSelectInputWidget, this is easy to do.

Event Timeline

Change 863047 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[oojs/ui@master] RadioSelectInputWidget: Support help texts for each option

https://gerrit.wikimedia.org/r/863047

Change 863048 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/core@master] HTMLRadioField: Support per-options help texts

https://gerrit.wikimedia.org/r/863048

Urbanecm_WMF renamed this task from HTMLRadioField: Support help texts to HTMLRadioField: Support per-option help texts.Dec 1 2022, 10:45 PM
Urbanecm_WMF changed the task status from Open to In Progress.
kostajh subscribed.

Moving to needs work per this code review comment.

@Urbanecm_WMF do you have time to work on the JS implementation as requested there?

(Cross-linking T359019 which would implement this for CodexHTMLForm)