# taking two inputs; running a loop on them and storing all the in between values to the dataset with the submit button.

**URL:** <https://forum.wixstudio.com/t/taking-two-inputs-running-a-loop-on-them-and-storing-all-the-in-between-values-to-the-dataset-with-the-submit-button/26572>\
**Category:** Ask the community\
**Tags:** question, wix-stores, code\
**Created:** [April 18, 2020, 7:34am UTC](https://forum.wixstudio.com/t/taking-two-inputs-running-a-loop-on-them-and-storing-all-the-in-between-values-to-the-dataset-with-the-submit-button/26572 "2020-04-18T07:34:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maniii32724](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/maniii32724/32/10744_2.png) [@maniii32724](https://forum.wixstudio.com/u/maniii32724)\
**Post date:** [April 18, 2020, 7:34am UTC](https://forum.wixstudio.com/t/taking-two-inputs-running-a-loop-on-them-and-storing-all-the-in-between-values-to-the-dataset-with-the-submit-button/26572/1 "2020-04-18T07:34:23Z")

</div>

Can someone help me with this?  
i have a form (inventoryform) linked to dataset (InventoryDataset) with some fields, all the other fields are connected directly to the dataset fields.  
but i want two of the user inputs ( [#Input3](https://www.wix.com/corvid/forum/search/~num~Input3) with start serial number and [#input4](https://www.wix.com/corvid/forum/search/~num~input4) with end serial number) to run into a loop. and i want all the rest numbers between [#input3](https://www.wix.com/corvid/forum/search/~num~input3) and [#input4](https://www.wix.com/corvid/forum/search/~num~input4) to store in a dataset field (SerialNumbers) with all the of the other repeated values connected directly.

for eg if their are 10 serials between [#input3](https://www.wix.com/corvid/forum/search/~num~input3) and [#input4](https://www.wix.com/corvid/forum/search/~num~input4) for all the 10 serials all of the rest data which is directly connected to dataset from my page will remain same.  
how will it be performed pressing a submit button.??
