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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform_button_component.patch | 2.98 KB | dubois |
| #1 | button_component-1213146-1.patch | 2.94 KB | firebus |
Comments
Comment #1
firebus commentedand a patch
Comment #2
dubois commentedPatch 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.
Comment #3
quicksketchI'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
Comment #4
firebus commentedi 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!
Comment #5
quicksketchLike #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.
Comment #6
danchadwick commented