Adding paste functionality to form composer fields

Hello

Are there plans to allow copy and paste in text input fields in the future? As is the case when creating a message without a form template.

1 Like

Could you elaborate further on this? Thanks.

Of course.

Nowadays, when you create a post, it’s very easy to copy and paste images, GIFs and so on. Here’s an example using the following GIF to illustrate this:

20260504-0614-03.0776929

This feature is used in most posts on our forum.

Suppose I now have the following form template:

- type: input
  id: version
  attributes:
    label: "Framework version"
    description: "Which version are you using ?"
    placeholder: "e.g. 3.0.10"
  validations:
    required: true
- type: composer
  id: description
  attributes:
    label: "Description"
    placeholder: "What brings you here?"
  validations:
    required: true
- type: composer
  id: steps-to-reproduce
  attributes:
    label: "Steps to reproduce"
    placeholder: "1. Go to ... \n2. Click on ... \n3. See error"
    description: "Provide detailed steps to reproduce the issue"
  validations:
    required: false
    minimum: 20
    maximum: 2000

I would also like to be able to copy and paste content into “composer” fields. Nothing happens when I press Ctrl + V

Interesting. What works is I toggle to the WYSIWYG editor, pasting the image works fine, which I can then switch back to the Markdown editor. This looks like a bug…

EDIT: The image shows up, but it doesn’t look like it’s an upload.

Similar but different, you can allow uploads:

- type: upload
  id: image-uploads
  attributes:
    file_types: ".jpg, .jpeg, .png, .gif, .webp, .svg, .tiff, .heic"
    allow_multiple: true
    label: "Lorem ipsum"

Yes, actually, I’d seen that, but when you want to include screenshots in a description, it makes it harder to read. And besides, copying and pasting is much quicker.

2 Likes