# Repeating product fields?

**URL:** <https://forum.litium.com/t/repeating-product-fields/267>\
**Category:** Questions\
**Tags:** litium-6, field-framework\
**Created:** [October 2, 2018, 11:07am UTC](https://forum.litium.com/t/repeating-product-fields/267 "2018-10-02T11:07:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin.w](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/robin.w/32/75_2.png) [@Robin.w](https://forum.litium.com/u/Robin.w)\
**Post date:** [October 2, 2018, 11:07am UTC](https://forum.litium.com/t/repeating-product-fields/267/1 "2018-10-02T11:07:27Z")

</div>

Hi is it possible to add a repeating field to a product? I want to have a field that is basically a string array in the product admin. Is this possible or do I need to make a js-gui and save all values separated in a normal textfield? Can I inject custom js on the product admin view?

Litium version: 6.2

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [October 2, 2018, 11:22am UTC](https://forum.litium.com/t/repeating-product-fields/267/2 "2018-10-02T11:22:48Z")

</div>

Can’t you use a TextOption field for that purpose?

---

<div class="post-metadata">

**Author:** ![Robin.w](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/robin.w/32/75_2.png) [@Robin.w](https://forum.litium.com/u/Robin.w)\
**Post date:** [October 2, 2018, 11:28am UTC](https://forum.litium.com/t/repeating-product-fields/267/3 "2018-10-02T11:28:09Z")

</div>

I can (This is when you add the field Options globally before adding a product right?) , but it will not be very user friendly for the marketing team and it will not have a lot of repeating values between products.

Is it possible to inject javascript in the admin so that I can use a MultiText field and just add some custom display logic?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [October 2, 2018, 11:38am UTC](https://forum.litium.com/t/repeating-product-fields/267/4 "2018-10-02T11:38:02Z")

</div>

Let me search Litium Docs for you 🙂  
[https://docs.litium.com/documentation/architecture/field-framework/creating-a-custom-field-type](https://docs.litium.com/documentation/architecture/field-framework/creating-a-custom-field-type)

---

<div class="post-metadata">

**Author:** ![Robin.w](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/robin.w/32/75_2.png) [@Robin.w](https://forum.litium.com/u/Robin.w)\
**Post date:** [October 2, 2018, 12:00pm UTC](https://forum.litium.com/t/repeating-product-fields/267/5 "2018-10-02T12:00:35Z")

</div>

Thanks for your help, Am guessing it’s was all in good fun but I cant help to read your comment as "Pleas read the docs before asking q’s 🙂 " But you have to realize that the documentation is lacking to put it mildly?? Am vary new to Litium myself but every single developer I have spoken to agrees it’s just bad. So after countless failed tries one starts coming here directly because this forum is (in contrast) **superb** thanks to you guys. But I don’t not enjoy the peak 😉

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [October 2, 2018, 12:02pm UTC](https://forum.litium.com/t/repeating-product-fields/267/6 "2018-10-02T12:02:45Z")

</div>

But did it solve your issue?

---

<div class="post-metadata">

**Author:** ![Robin.w](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/robin.w/32/75_2.png) [@Robin.w](https://forum.litium.com/u/Robin.w)\
**Post date:** [October 2, 2018, 12:08pm UTC](https://forum.litium.com/t/repeating-product-fields/267/7 "2018-10-02T12:08:01Z")

</div>

Its absolutely seam like one possible solution but am now opting for adding a custom panel and try to solve the problem with a few lines of js, so I don’t have to learn Angular fore just this task 🙂 But time will tell it might become custom field type in the end 🙂

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [October 2, 2018, 12:12pm UTC](https://forum.litium.com/t/repeating-product-fields/267/8 "2018-10-02T12:12:12Z")

</div>

Let’s see what u can do then 😉

---

<div class="post-metadata">

**Author:** ![marten](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/marten/32/11_2.png) [@marten](https://forum.litium.com/u/marten)\
**Post date:** [October 8, 2018, 6:43am UTC](https://forum.litium.com/t/repeating-product-fields/267/9 "2018-10-08T06:43:36Z")

</div>

Support for array fields will also come with Litium 7 if you are planning on upgrading the project.
