Problem/Motivation

Would be great to add a preview feature to the Schema Form Design edit page.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

murz created an issue. See original summary.

nickolaj made their first commit to this issue’s fork.

nickolaj’s picture

Status: Active » Needs review

Added a preview section to the Schema Form Design edit form. When editing a design entity that has both schema and design values set, a disabled "Preview" details element renders the form as it would appear with the current design applied. Gracefully handles invalid schema/design with an error message.

murz’s picture

@nickolaj, thank you for the contribution! I decided to implement this in a more universal way by rendering the form in the iframe, so as not to affect the main form submission, also added a bunch of other fixes together ;)

Here https://git.drupalcode.org/project/schema_form/-/merge_requests/12 is my MR, could you please review and test it? Thank you!

  • murz committed 6ad10483 on 1.0.x
    feat: #3574290 Add preview to the Schema Form Design
    
    By: murz
    By:...

murz’s picture

Status: Needs review » Fixed

Implemented.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

murz’s picture

Status: Fixed » Closed (fixed)