A lightweight button component that will act as either a submit button or next page button, depending on the context.

Useful when you want to pretend that you have multiple forms on a single page (each "form" enclosed in a fieldset that can be styled appropriately)

This does much less than #374678: New image_button component plus patch to support it

Comments

firebus’s picture

Status: Active » Needs review
StatusFileSize
new2.94 KB

and a patch

dubois’s picture

StatusFileSize
new2.98 KB

Patch works against 7.x-3.13. Noticed #weight is not included in implementation of _webform_render_component() - added it to be able to position the button.

quicksketch’s picture

I'm still on the fence about a button component (as you probably gathered from the other issue). Currently at least I think I would prefer not adding this component to the core project. I think the management of a manual button element would confuse users into making them think they needed to add buttons to the form

firebus’s picture

i won't whine if you close this won't fix!

i do think it's a reasonably common use case (or maybe a "not incredibly uncommon" use case?), and if there's something that would make this feature work as a contribution to the module, please let me know!

quicksketch’s picture

Status: Needs review » Postponed

Like #374678: New image_button component plus patch to support it, I don't plan on adding buttons as a component. This could be made into a contrib module or bundled into the https://drupal.org/project/webform_bonus project. I would like to make the buttons more generally flexible, but I don't think a component is the answer to this problem. I'm marking this issue postponed for other users that desire this feature to find. Perhaps it can be a discussion ground for other approaches or to track if this patch moves into another project.

danchadwick’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)