Submit Button says "Submit" on first page of multiple page form

Created on 26 November 2024, 10 months ago

Problem/Motivation

I have a multi-page form using Drupal 10. The pages are set up to use the wizard. There is one Submit button which is the default form actions button. I have set up what the Previous and Next button labels should say. These work once you are past the first page. However, on the first page of the form, the button says "Submit" not "Proceed".

If I click the "Test" tab, the button says "Proceed". The button that says "Submit" actually functions as a "Proceed" button. If I use this, then go backward, the button now says "Proceed". It only shows apparently when you first arrive at the form as an end user.

Steps to reproduce

Create a webform in Drupal 10.3.6. Install webform 6.2.7. Create several pages in the form. Set the form to use the wizard. Check the functionality of the actions button on the first page. For me, it says "Submit".

Perhaps I'm missing something, or this has come up before. I'm simply seeking support and not sure that it's actually a bug.

πŸ’¬ Support request
Status

Active

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rraney

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

Comments & Activities

  • Issue created by @rraney
  • Status changed to Closed: cannot reproduce 19 days ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    In the next example webform the first button on the wizard page say 'Custom Next' as expected in the view and test tabs.

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    This is happening again. Attaching a screenshot of the first page of the form. I don't know how to recreate it. It's a multipage webform. I have the most updated version of the module and Drupal 10.3.x. The first page has a conditional, where you cannot continue without checking the box because the next page(s) are visibly dependent on this checkbox. I do not have Ajax enabled, because that's generally been an issue with multipage. I changed the "Submit" button element to say "Proceed" and "Previous. It does on all pages except the first page.

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    I wonder if the form thinks it's done, because the other pages aren't enabled unless you check the box. That explains why, if you go back to the first page from the second page, it actually says "Proceed".

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    Here's the workaround: Make the button itself conditionally visible based on the checkbox, instead of the pages that follow. This fixes the issue. I doubt many people run into this, but who knows. Might be good to change the logic somehow.

Production build 0.71.5 2024