- Issue created by @robcarr
- 🇬🇧United Kingdom robcarr Perthshire, Scotland
If a Submit button were to be inserted into the
webform_workflows_element
(/src/Element/WebformWorkflowsElement.php) what handler would be called? Any 'Update state' button should only be rendered on the 'View' display (to render in the submission Edit display would be very confusing) - 🇬🇧United Kingdom robcarr Perthshire, Scotland
I still have the same screen and missing 'Save' button despite updating to 2.0alpha3 release,
So I'm clearly making a config error somewhere:
- 🇲🇾Malaysia elaine.ong
Same here. On Submission View page, workflow does not provide a save button.
- 🇱🇧Lebanon jana_najdi01
I have the same problem
I cannot edit the workflow on the view page and i don't have a submit button I only have next and preview
is there any solution for this? - 🇫🇷France mably
Just re-tested the issue's scenario again on a fresh Drupal 11.1.7 and I definitely have the "Save" button showing:
And I can definitely save it:
Don't know what we are missing here.
- 🇱🇧Lebanon jana_najdi01
This in the edit section
It should also appear in the view section since we enabled: Allow changing the workflow state from the "view submission" page
which is not working, I can see the field but it is not editable - Merge request !30Issue #3507158 by mably, robcarr, jana_najdi01, elaine.ong: Unable to update state on Webform Submission view form → (Open) created by mably
- 🇬🇧United Kingdom robcarr Perthshire, Scotland
I've applied the MR - thanks so much @mably
The submit button is now rendered on the Webform View display. I've done a few manual tests and all seems to work fine, but would be good if someone else could test before RTBC
It might make the form more intuitive by altering the default "Save workflow" button (line 311) to either "Save state change", "Save transition" or make the button text configurable. Using either the word 'State' or 'Transition' makes it consistent with the terminology in the Webform > Build > Webform workflows element config.
- 🇫🇷France mably
@robcarr thanks for your feedback.
May be you can create a new issue for the button wording.
I'll merge this issue as soon as we get another positive review.
- 🇫🇷France mably
@jana_najdi01 looks like a different problem as the workflow fields are not displayed at all on your screenshot.
- 🇱🇧Lebanon jana_najdi01
There is availble transition and as i mentioned before that it is not displayed as dropdown and i cannot modify it or save it
- 🇫🇷France mably
@jana_najdi01 could you post a screenshot of the same submission in edit mode?
- 🇬🇧United Kingdom robcarr Perthshire, Scotland
@jana_najdi01 check your config in Webform > Build > Webform workflows element and make sure the Allow changing the workflow state from the "view submission" page toggle is set.
Sample screenshot of 'View submission" display
Note that the 'Save workflow' button [using the MR] is only visible on the View display of the submission. It's not rendered on the Edit display of the submission - which is expected behaviour.
- 🇫🇷France mably
@jana_najdi01 I don't see the "Save" button on your edit submission screenshot, it should be present.
It would also be interesting to see if you have some transitions available in that select control.
- 🇱🇧Lebanon jana_najdi01
It is enabled and there is a submit button in the webform
- 🇫🇷France mably
@jana_najdi01 could you provide a full repeatable scenario from a fresh Drupal 11 install ?
Otherwise we won't be able to help much.
Your problem is most probably not related to this current issue.
- 🇱🇧Lebanon jana_najdi01
Okay so I removed the workflow from the wizard page and I put it on the level of the submit button
Now i can edit it but there's no save button only next and previous
any idea?