Bind paragraph view mode with form mode

Created on 9 June 2020, over 4 years ago
Updated 16 March 2023, over 1 year ago

I was thinking of the ability to add an option to bind view mode select field with a form mode of the paragraph.
If the form mode with the same id will exist, then the paragraph form will be replaced with this specific form mode.
There are a few challenges here... First is to replace the paragraph form dynamically via ajax. I was looking into Paragraphs module source code and seems like it might be cumbersome to accomplish such functionality. At least I wasn't able to see an easy way at a first glance.
The second thing is that I hope that all the form values will be preserved. I would like to avoid such cases when changing the view mode value wipes all the paragraph values.
I don't have enough time to implement such a feature, so that's why I'm opening this issue for a community. Any help with that will be appreciated.

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡΅πŸ‡±Poland sayco ToruΕ„

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024