Title: Nested input names
Last modified: December 12, 2024

---

# Nested input names

 *  Resolved [La Coopérative des Internets](https://wordpress.org/support/users/coopi/)
 * (@coopi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/nested-input-names/)
 * Hi Matthias !
 * Do you think allowing arrays (`[]`) in input names would be a good idea (like`
   name="data[0][name]"`) ?
 * I try to do it on a kind of repeater field to get a clean result to process in
   back end with a hook but for the moment it fails on submission `The following
   field is not allowed:`.
 * Thank you for your answer !
 * Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Matthias Kittsteiner](https://wordpress.org/support/users/kittmedia/)
 * (@kittmedia)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/nested-input-names/#post-18194807)
 * Hi [@coopi](https://wordpress.org/support/users/coopi/),
 * that’s definitely something that should be possible.
 * How would you assume the output in the email would be displayed?
 * I could imagine either a comma-separated list:
 * `Value 1, Value 2, …`
 * Or a list with dashes:
 *     ```wp-block-code
       - Value 1- Value 2…
       ```
   
 *  Thread Starter [La Coopérative des Internets](https://wordpress.org/support/users/coopi/)
 * (@coopi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/nested-input-names/#post-18195238)
 * Oh great !
 * I think with dashes it can be better because of possible deep nesting (ex: `data[
   1][name][public]`).
 * It can may be output something link this in the email ?
 *     ```wp-block-code
       - data :   - name :      - public : Vincent   - email : vincent@email.com- data :  ...
       ```
   
 * And keeping the array structure in availables hooks 🙂
 * What do you think about that ?
 * Thanks !
 *  Plugin Author [Matthias Kittsteiner](https://wordpress.org/support/users/kittmedia/)
 * (@kittmedia)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/nested-input-names/#post-18195438)
 * Seems like a good idea! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Nested input names’ is closed to new replies.

 * ![](https://ps.w.org/form-block/assets/icon.svg?rev=2889439)
 * [Form Block](https://wordpress.org/plugins/form-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/form-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/form-block/)
 * [Active Topics](https://wordpress.org/support/plugin/form-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/form-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/form-block/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Matthias Kittsteiner](https://wordpress.org/support/users/kittmedia/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/nested-input-names/#post-18195438)
 * Status: resolved