Skip to content

Commit

Permalink
Update ObjectPublishing.rst
Browse files Browse the repository at this point in the history
When I tried to refactor a form submission (which allows up to five users to sign up at once) to make use of records, I stumbled upon the problem, that clicking a gender radio button for one user deactivated all the other users' gender selections. The problem was the name attribute of the input radio button, ie  name="users.gender:records". Unwilling to go back to the solution which numbered the fields (ie user_5_gender), I switched from radio buttons to select boxes.
  • Loading branch information
jugmac00 committed Mar 26, 2018
1 parent 9714722 commit 549c1ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/zdgbook/ObjectPublishing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,8 @@ Record marshalling provides you with the ability to create complex
forms. However, it is a good idea to keep your web interfaces as
simple as possible.

Please note, that records do not work with input fields of type radio as you would expect, as all radio fields with the same name are considered as one group - even if they are in different records. That means, activating one radio button will also deactivate all other radio buttons from the other records.

Exceptions
----------

Expand Down

0 comments on commit 549c1ca

Please sign in to comment.