A sitebuilder can override In Other Words fields' labels to use singular and plural versions

Created on 1 October 2023, about 1 year ago

Problem/Motivation

For example, we have an authors field where the label should be "Author" if there is one chosen and "Authors" if it is two or more.

Attempting to work around this by setting the label to hidden and using the In Other Words before text did not work because HTML is escaped.

Proposed resolution

Give sitebuilders a way to override field labels with singular/plural versions, and/or allow HTML in the before/after text.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mlncn
  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    The second option, of allowing HTML in before/after text:

    • is easier to implement, but a total hack for this purpose
    • enables many more use cases: "Our flavors include chocolate, vanilla, strawberry, and peppermint chocolate chip (only available at select locations).", "Monday through Thursday noon in the park!"
    • requires preventing security exploits (XSS)
Production build 0.71.5 2024