1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to build multivalue form elements using Form API

Discussion in 'Programming/Internet' started by Joe, Aug 2, 2020.

  1. Joe

    Joe Guest

    With the 'field collections' module at the form level, you can create a fieldset (or 'field group') that will accept multiple sets of values.

    [​IMG]

    Is there a way to do this with the Form API directly (or with the help 'field collections' or 'field group' module) programmatically. I can make the form fieldset easy enough, but I'm not sure how to set multiple values for this set. In fact, I'm not really sure how you define multiple values for any field with the Form API.

    UPDATE: Just to be clear I want to create the form, not the entity itself (at least not yet). I want to use the Form API to accomplish this to make my own $form – just the form.

    Login To add answer/comment
     

Share This Page