devvit icon indicating copy to clipboard operation
devvit copied to clipboard

enhancement: links in forms

Open ethrx opened this issue 2 months ago • 1 comments

Problem Forms are useful for gathering consent things like confirmation dialog flows.

For respect of the user's privacy, I want to make it clear they need to agree to a privacy policy.

Currently it does not seem possible to embed links or navigate outside of the form, as everything is primitive. So I cannot provide a link to my privacy policy.

Enhancement

current proposed
Image Image

ethrx avatar Oct 10 '25 17:10 ethrx

Example form:

{
  title: 'Upload',
  description: 'Do you consent to upload your data? Read our privacy policy here: https://acme.org/privacy',
  fields: [
    {
      type: 'boolean',
      name: 'upload',
      label: 'I consent to the storage of my data.',
      required: true,
    },
    {
      type: 'boolean',
      name: 'ai',
      label: 'I consent to AI processing of my data. [Learn more](https://acme.org/ai).',
      default: true,
      required: false,
    },
  ],
  acceptLabel: 'Upload',
  cancelLabel: 'Cancel',
}

As it seems impractical to try and implement my suggestion inside the Form type, it might be better if links were automatically converted to <a>, or form strings supported markdown.

ethrx avatar Oct 10 '25 17:10 ethrx