Title: Type Error &#8211; repeatable fields
Last modified: June 21, 2023

---

# Type Error – repeatable fields

 *  Resolved [Forge12 Interactive GmbH](https://wordpress.org/support/users/forge12/)
 * (@forge12)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/type-error-repeatable-fields/)
 * Hey there,
   found a bug causing the repeatable fields not to work properly. The
   issue is in includes/MergeTags/Fields.php, Classs NF_MergeTags_Fields in Line
   569.
 *     ```wp-block-code
       if($id === (int)$id) 
       ```
   
 * Always returns false for repeatable fields; therefore the return value will be
   empty, not recognizing the repeatable field and therefore throwing a “Type error”.
 * Changing to the following code resolved the issue for us:
 *     ```wp-block-code
       if($id == (int)$id)
       ```
   
 * Regards
   Marc

Viewing 1 replies (of 1 total)

 *  Plugin Support [Quay Morgan](https://wordpress.org/support/users/quaymorgan/)
 * (@quaymorgan)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/type-error-repeatable-fields/#post-16837978)
 * Hi again! Thanks for reporting this. We don’t have a matching issue and attempting
   to replicate, we’re not seeing the same thing as you are. We may just be misunderstanding
   how to replicate. Could you please reach out to us, at your convenience, in our
   primary [Ninja Forms Support](https://ninjaforms.com/contact/)? We’re a lot better
   suited to troubleshooting there and would like to help figure this out!

Viewing 1 replies (of 1 total)

The topic ‘Type Error – repeatable fields’ is closed to new replies.

 * ![](https://ps.w.org/ninja-forms/assets/icon-256x256.png?rev=1649747)
 * [Ninja Forms - The Contact Form Builder That Grows With You](https://wordpress.org/plugins/ninja-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Quay Morgan](https://wordpress.org/support/users/quaymorgan/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/type-error-repeatable-fields/#post-16837978)
 * Status: resolved