When I try to add a new form component, enter a new component name, and click add...
...then click the back button, my new component name is still there, and when I try using the same component name and click add again (like if I pick the wrong type)...
...the field immediately goes blank, then I get the error, "When adding a new component, the name field is required."
But at this point, I can now add it OK.
However if I happen to type "New component name" (default value) as a name, I'll get the same error...
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | webform_hint_text.patch | 2.68 KB | quicksketch |
Comments
Comment #1
quicksketchWhat was happening here is that Firefox prepopulates fields with their last value when using the Back button. Since Webform was using the default value as the basis for what the "hint" text should be, when submitting the form a second time Webform would automatically delete that default text. This patch fixes this problem by using the "rel" attribute instead of the "value" for checking what the hint text should say. I've committed to all 3.x branches.