Arrows supporting Previous and Next buttons on webforms are not rendering as expected

Created on 18 January 2024, 5 months ago
Updated 2 April 2024, 3 months ago

Summary

When creating a form with multiple pages, there are Previous and Next buttons. These as default with other forms present the button values with arrows < >, but with CivicTheme, these render as their HTML entities,
&amp;lt; and &amp;gt; respectively.

Steps to reproduce

Running GovCMS distribution 3.5.0 with CivicTheme 1.6 and have used Provision content. This also assumes supporting webform submodules like Webform Access, Webform Node and Webform UI are also enabled.

  1. Create a Webform via the site UI
  2. Add at least one page if not more and include elements on each page
  3. Click Save elements and View your form
  4. Where the Previous and Next buttons appear, the arrows don't render as expected

This occurs when:

  • Using the default form view to review your form, or using it as its own standalone page
  • Adding a webform as a component to a page

Observed outcome

  • Buttons render as expected with CivicTheme theming applied
  • Buttons work as expected, moving you either back to the previous form page or to the next form page
  • The arrows don't present as expected


You can see the value written out presents the HTML entity:

The default Previous and Next button values are set at the Webform config level, at /admin/structure/webform/config in a drupal site. So out of the box, impacts any forms when using CivicTheme:

The buttons can be further tuned at the webform level, but encounter the same problem.

Switching to another theme, like Barik, does not have this issue:

This issue also occurs if you change the value of the Submit button in the Webform UI:

Expected outcome

  • Buttons render as expected with CivicTheme theming applied
  • Buttons work as expected, moving you either back to the previous form page or to the next form page
  • The arrows present as expected

🐛 Bug report
Status

Fixed

Version

1.6

Component

Code

Created by

🇦🇺Australia alex.skrypnyk Melbourne

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

Comments & Activities

Production build 0.69.0 2024