Closed (fixed)
Project:
Webform
Version:
8.x-5.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2019 at 13:57 UTC
Updated:
3 Oct 2019 at 10:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jorditr commentedComment #3
jrockowitz commentedOuch!!! This is not easy to fix via the UI. It should very easy to fix via custom code. I even think you can embed the current page's langcode as token in your custom URL
Comment #4
jrockowitz commentedSo I determined that token replacement is not working for the form #action. The attached patch fixes this issue.
Comment #5
jrockowitz commentedThe attached webform provides a reasonable work-around where you can create a hidden form action element and populate the #action using a token.
The attached patch is required to make this possible. The attached patch requires a lot of testing because it is extracting the default values from every form element and passing to the Webform Submission's data. I think this is a really important improvement that just needs work, test coverage, and even a change record.
Comment #8
jorditr commentedHei Jacob, thanks a lot! Let me check your code.
Comment #10
jrockowitz commentedAttached patch is probably the best solution but it still needs some test coverage.
Comment #11
jrockowitz commentedArg!!! The previous was not sync'd with the 8.x-5.x branch.
Comment #13
jrockowitz commentedComment #15
jrockowitz commentedSince the patch has test coverage, I committed it. Please download the latest dev release to review.