Skip to content

Commit 78f34d0

Browse files
committed
added name to _submit button
1 parent 1c0355b commit 78f34d0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

py4web/utils/form.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ def __call__(
596596

597597
# Set the deletable json field attributes.
598598
submit_button_attributes["_label"] = T("Submit")
599+
submit_button_attributes["_name"] = "_submit"
599600
submit_button_attributes["_type"] = submit_button_field_type
600601
submit_button_attributes["_class"] = self.classes["input[type=submit]"]
601602

@@ -604,6 +605,7 @@ def __call__(
604605

605606
controls["submit"] = INPUT(
606607
_type=submit_button_field_type,
608+
_name="_submit",
607609
_value=T("Submit"),
608610
_class=self.classes["input[type=submit]"],
609611
)

0 commit comments

Comments
 (0)