# How to generate dynamic repeater based on input value

**URL:** <https://discourse.getcockpit.com/t/how-to-generate-dynamic-repeater-based-on-input-value/1854>\
**Category:** Feature Request\
**Created:** [March 4, 2021, 11:22am UTC](https://discourse.getcockpit.com/t/how-to-generate-dynamic-repeater-based-on-input-value/1854 "2021-03-04T11:22:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhanjiv](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@dhanjiv](https://discourse.getcockpit.com/u/dhanjiv)\
**Post date:** [March 4, 2021, 11:22am UTC](https://discourse.getcockpit.com/t/how-to-generate-dynamic-repeater-based-on-input-value/1854/1 "2021-03-04T11:22:50Z")

</div>

Hi There! I am developing a system Table booking using cockpit admin, my query is … I want to generate dynamic repeater based on input value.  
For example suppose I am entering Table zone value = 2 and Table rows value = 5 then generate 2 Zone and 5 row dynamically in repeater. Its possible in cockpit side?

check screenshot that my requirement.

 ![1](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/b769f889b02c0ae5643af876868bef0314d90783.png)

 ![2](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/2910bdc23756cf8e32e4118db57c099b4a1ef01f.png)

---

<div class="post-metadata">

**Author:** ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Post date:** [March 24, 2021, 9:40am UTC](https://discourse.getcockpit.com/t/how-to-generate-dynamic-repeater-based-on-input-value/1854/2 "2021-03-24T09:40:03Z")

</div>

Is this question solved by your other thread with the SelectRequestOptions addon?

> [@How to implement SelectRequestOptions in repeater?](https://discourse.getcockpit.com/t/how-to-implement-selectrequestoptions-in-repeater/1883):
>
> Any one help me here. how to implement SelectRequestOptions in repeater

If so, please mark both threads as solved by marking an answer as solution.

---

<div class="post-metadata">

**Author:** ![dhanjiv](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@dhanjiv](https://discourse.getcockpit.com/u/dhanjiv)\
**Post date:** [March 24, 2021, 9:44am UTC](https://discourse.getcockpit.com/t/how-to-generate-dynamic-repeater-based-on-input-value/1854/3 "2021-03-24T09:44:47Z")

</div>

No this one is different question?

---

<div class="post-metadata">

**Author:** ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Post date:** [March 24, 2021, 10:12am UTC](https://discourse.getcockpit.com/t/how-to-generate-dynamic-repeater-based-on-input-value/1854/4 "2021-03-24T10:12:39Z")

</div>

I’m sorry, but there aren’t any conditional core fields, so you would have to write your own one.

Have a look at the [core fields](https://github.com/agentejo/cockpit/tree/next/modules/Cockpit/assets/components) to get an idea of the basic structure. Styling is done with [UIkit v2](https://getuikit.com/v2/docs/core.html) and the logic is done with [riot.js v3](https://v3.riotjs.now.sh/) and pure Javascript or jQuery. I also have a [collection of custom fields](https://github.com/raffaelj/cockpit-scripts/tree/master/custom-fields) for inspiration.
