Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#3 | allows_preview_page_to-2887078-2.patch | 100.32 KB | jrockowitz |
|
Comments
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #7
frankdesign CreditAttribution: frankdesign commentedjrockowitz
Thanks for adding this to webform. I presume to style the preview page, I need to use webform-preview.html.twig? The comments in that file would imply that styling possibilities are quite limited - is it possible to style individual fields within the Preview page? If so, can you point me in the right direction to do that?
Also, has it been added to 8.x-5.0-beta13?
Thanks
Frank
Comment #9
doxigo CreditAttribution: doxigo commentedSorry for re-opening this task, but I was thinking if we could actually add a field to preview page, for instance, if we could actually add a "Accept TOS" field to preview page would be nice.
Comment #10
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedTo add TOS you would to build a custom preview page using a computed element with a TOS checkbox.
Comment #11
doxigo CreditAttribution: doxigo commentedThanks for the answer, may I ask how can we build a custom preview page?
Comment #12
doxigo CreditAttribution: doxigo commentedHey there again,
I was wondering if it's possible to customize the output of preview page, so far I noticed the data is being rendered with
<b>
and<br>
tags with no proper wrapper class or item classes and it's almost impossible to style it properly.Thanks
Comment #13
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #14
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@see #2894631: Update submission preview and view to use #type: item and details
Comment #16
bgilhome CreditAttribution: bgilhome commentedA note regarding this issue: looks like it was reworked in https://www.drupal.org/project/webform/issues/2911463 such that the preview page now renders the submission entity in 'preview' view mode - therefore it can be templated using webform-submission--preview.html.twig, or a more specific template using usual entity template suggestions.