# How to Create a Prepopulated Fields?

**URL:** <https://forum.kintone.dev/t/how-to-create-a-prepopulated-fields/686>\
**Category:** General\
**Tags:** auto-fill-fields, auto-populate\
**Created:** [December 1, 2022, 12:35pm UTC](https://forum.kintone.dev/t/how-to-create-a-prepopulated-fields/686 "2022-12-01T12:35:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naandom\_Godson](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/naandom_godson/32/253_2.png) [@Naandom\_Godson](https://forum.kintone.dev/u/Naandom_Godson)\
**Post date:** [December 1, 2022, 12:35pm UTC](https://forum.kintone.dev/t/how-to-create-a-prepopulated-fields/686/1 "2022-12-01T12:35:20Z")

</div>

How might I create a JS customization to auto-populate data into fields?

I have multiple forms that are the same, but we want some fields to be pre-populated with set values specified in the first form.

---

<div class="post-metadata">

**Author:** ![Genji](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/genji/32/646_2.png) [@Genji](https://forum.kintone.dev/u/Genji)\
**Post date:** [December 5, 2022, 2:44am UTC](https://forum.kintone.dev/t/how-to-create-a-prepopulated-fields/686/2 "2022-12-05T02:44:37Z")

</div>

Hello @Naandom_Godson ,

Welcome to the Kintone Developer Forum & thank you for posting your question!

## Auto-Populate-Data-Related Tutorials

We recommend you check out our many **Autofill Data** related tutorials:

- [Add Leading Zeros to Numbers](https://kintone.dev/en/tutorials/autofill-data/add-leading-zeros-to-numbers/)

- [Add Today's Date to the Date Field with One Click](https://kintone.dev/en/tutorials/autofill-data/add-todays-date-to-the-date-field-with-one-click/)

- [Add Users to the User Field with One Click](https://kintone.dev/en/tutorials/autofill-data/add-users-to-the-user-field-with-one-click/)

- [Auto-assign Users when Adding Records](https://kintone.dev/en/tutorials/autofill-data/auto-assign-users-when-adding-records/)

- [Auto-populate Table Rows](https://kintone.dev/en/tutorials/autofill-data/auto-populate-table-rows/)

- [Check All Checkboxes](https://kintone.dev/en/tutorials/autofill-data/check-all-checkboxes/)

- [Insert Row Numbers Into Tables](https://kintone.dev/en/tutorials/autofill-data/insert-row-numbers-into-tables/)

- [Set Automatic Numbering](https://kintone.dev/en/tutorials/autofill-data/set-automatic-numbering/)

- [Track Time Between Process Management Statuses](https://kintone.dev/en/tutorials/autofill-data/track-time-between-process-management-statuses/)

After reviewing these tutorials, feel free to ask clarifying or specific technical questions.

## More help?

To better help you out, please provide more information regarding the following:

- Your current situation
- Your desired outcome
- What you have tried so far
- Error message you got (Screenshots are helpful 👌)

Thank you for your time & good luck with your project!

---

<div class="post-metadata">

**Author:** ![Naandom\_Godson](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/naandom_godson/32/253_2.png) [@Naandom\_Godson](https://forum.kintone.dev/u/Naandom_Godson)\
**Post date:** [December 6, 2022, 12:34pm UTC](https://forum.kintone.dev/t/how-to-create-a-prepopulated-fields/686/3 "2022-12-06T12:34:12Z")

</div>

Thanks @Genji

I went through the [Auto-populate Table Rows](https://kintone.dev/en/tutorials/autofill-data/auto-populate-table-rows/) tutorial and was able to reproduce the populated fields as in the example.

## Current Situation

I have a "Records" table and a "Sub-Records" table in my Kintone App.

**"Sub-Record" table**

- The "Sub-Records" table is a subset of the "Records" table.
- Each "Sub-Record" table's row has a reference ID that links it back to the "Records" table's own row.

## Desired Outcome

After I create the first Sub-Record for a Record, I do not want to repeat some fields in subsequent Sub-Records. I want to fetch some values from the previous Sub-Record and pre-populate those fields.

---

<div class="post-metadata">

**Author:** ![Genji](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/genji/32/646_2.png) [@Genji](https://forum.kintone.dev/u/Genji)\
**Post date:** [December 9, 2022, 6:03am UTC](https://forum.kintone.dev/t/how-to-create-a-prepopulated-fields/686/4 "2022-12-09T06:03:49Z")

</div>

Hello @Naandom_Godson ,

Thank you for going through the tutorial and providing more context to your question. However, this forum is for engineers of all levels, to seek Kintone customization advice from other engineers.

For requests on custom JavaScript implementations, please seek advice through the [Kintone Partners](https://www.kintone.com/en-us/partners/) page.

We are more than happy to help debug or improve your existing code. Feel free to post specific questions or problems you have encountered while building Kintone customizations.
