Hey!

One of our clients stumbled on an issue where they couldn't change the default value of a Submit button. They were trying to change the value by changing the Title of the submit button, which has no effect, because the Submit button label has to be used instead.

But this was confusing for them from an UX perspective, as with other fields the Title is rendered and used as the label for inputs. So are there any particular reasons why the Title of submit button couldn't be used as the input value?

Simplytest link to the default Contact form, wher the submit action and other fields are used:
https://dm21c.ply.st/admin/structure/webform/manage/contact

CommentFileSizeAuthor
#3 3002485-3.patch1.88 KBjrockowitz

Comments

ainarend created an issue. See original summary.

jrockowitz’s picture

I understand that the 'Title' which you are referring to is the group of buttons. I know a simple contact form has only one button but more complex forms have previous, next, save draft, preview, and reset buttons.

I am not seeing any immediate solutions.

jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new1.88 KB

Okay, so for the default 'Submit button(s)' while almost everyone is using we can hide the title and key because they are automatically populated.

ainarend’s picture

I didn't test the patch, but it makes sense to me if the confusing Title field for the actions field is simply removed.

Thanks!

jrockowitz’s picture

Status: Needs review » Fixed

I applied the patch. Please download the latest dev release to review.

ainarend’s picture

Too bad that Simplytest.me doesn't support dev branches. Dont have time to manually put a Drupal site right now.

We'll see this update once it makes it to a RC.

  • jrockowitz committed 019f813 on 8.x-5.x
    Issue #3002485 by jrockowitz: Submit button value
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.