title: Multiple forms in one form play[2.0.4]
body: <p>I am trying to do a form that has one model and 2 values that are always the same but there is one value that changes.</p>
  
  <p>My html form is:</p>
  
  <pre><code>@helper.form(action = routes.TeacherController.putQuestionToAssignment(), 'class -&gt; "form-horizontal") {
  
              &lt;input type="hidden" name="size" value="@{size}"&gt;
              &lt;input type="hidden" name="assignment_id" value="@{assignment_id}"&gt;
              @for(question &lt;- questions){
                  &lt;input type="checkbox" name="question_id" value="@{question.question_id}"&gt;
              }
                  &lt;button type="submit" class="btn btn-primary" value="submit"&gt;create&lt;/button&gt;
      }
  </code></pre>
  
  <p>my model:</p>
  
  <pre><code>@Entity
  public class Verkefnaspurningar extends Model {
      @Id
      public int verkefnaspurningar_id;
      @Constraints.Required
      public int assignment_id;
      @Constraints.Required
      public int question_id;
      @Constraints.Required
      public Double size;
  </code></pre>
  
  <p>and in the controller i am going to try to create a model for each question that is checked in the checkbox in the form, but i have no idea how to do that, can i maybe set an id on the question_id field in the form and loop through that? </p>
  
  <pre><code>public static Result putQuestionToAssignment(){
          Form&lt;Verkefnaspurningar&gt; verkefnaspurningarForm = form(Verkefnaspurningar.class).bindFromRequest();
              int question_id= verkefnaspurningarForm.get().question_id;
              Double size= verkefnaspurningarForm.get().size;
              int assignmentId= verkefnaspurningarForm.get().assignment_id;
              Verkefnaspurningar verkefnaspurningar = Verkefnaspurningar.create(assignmentId, question_id, size);
  
          return redirect(routes.TeacherController.createAssignment());
      }
  </code></pre>
  
  <p>Hoping that this post is not to dumb, my first one, with kind regards Björn. </p>