# I want the text in Text to be copy under Lookup

**URL:** <https://forum.kintone.dev/t/i-want-the-text-in-text-to-be-copy-under-lookup/1465>\
**Category:** General\
**Tags:** text-field\
**Created:** [March 3, 2025, 7:20am UTC](https://forum.kintone.dev/t/i-want-the-text-in-text-to-be-copy-under-lookup/1465 "2025-03-03T07:20:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Master\_Over\_Sun](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/master_over_sun/32/792_2.png) [@Master\_Over\_Sun](https://forum.kintone.dev/u/Master_Over_Sun)\
**Post date:** [March 3, 2025, 7:20am UTC](https://forum.kintone.dev/t/i-want-the-text-in-text-to-be-copy-under-lookup/1465/1 "2025-03-03T07:20:57Z")

</div>

I want the one in the picture I attached.  
1.

 ![555](https://canada1.discourse-cdn.com/flex035/uploads/kintone/original/1X/31a4c086b6f55ccddc87e51b85afd8b406c11a0a.png)  
2.  
 ![5555](https://canada1.discourse-cdn.com/flex035/uploads/kintone/original/1X/669058008bf74460afeac2ae38c7703a877c3308.png)

---

<div class="post-metadata">

**Author:** ![Jiae](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/jiae/32/715_2.png) [@Jiae](https://forum.kintone.dev/u/Jiae)\
**Post date:** [March 3, 2025, 8:26am UTC](https://forum.kintone.dev/t/i-want-the-text-in-text-to-be-copy-under-lookup/1465/2 "2025-03-03T08:26:03Z")

</div>

Hi @Master_Over_Sun 🙂  
Thanks for the post.

To assist you more effectively, could you share the code you’ve worked on and let us know the issues you’re encountering?

---

<div class="post-metadata">

**Author:** ![Master\_Over\_Sun](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/master_over_sun/32/792_2.png) [@Master\_Over\_Sun](https://forum.kintone.dev/u/Master_Over_Sun)\
**Post date:** [March 3, 2025, 9:28am UTC](https://forum.kintone.dev/t/i-want-the-text-in-text-to-be-copy-under-lookup/1465/3 "2025-03-03T09:28:45Z")

</div>

Here I did it in HTML to show you what I wanted. Sorry I don't have the code to show you. 🙏 🙏 🙏

---

<div class="post-metadata">

**Author:** ![Chris](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/chris/32/44_2.png) [@Chris](https://forum.kintone.dev/u/Chris)\
**Post date:** [March 3, 2025, 2:57pm UTC](https://forum.kintone.dev/t/i-want-the-text-in-text-to-be-copy-under-lookup/1465/4 "2025-03-03T14:57:27Z")

</div>

Hello @Master_Over_Sun  
I can't understand your goal based on your description and screenshots.

Are you trying to copy the text from a table's text field to a field outside the table, to the text right below the lookup in the same row, or something else? Also, what is the purpose of doing this?

It would be much easier to assist you if you could elaborate on your goal and provide more specific details on what you're trying to achieve.

Thank you.

---

<div class="post-metadata">

**Author:** ![Master\_Over\_Sun](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/master_over_sun/32/792_2.png) [@Master\_Over\_Sun](https://forum.kintone.dev/u/Master_Over_Sun)\
**Post date:** [March 4, 2025, 11:00am UTC](https://forum.kintone.dev/t/i-want-the-text-in-text-to-be-copy-under-lookup/1465/5 "2025-03-04T11:00:13Z")

</div>

Hi  
In my table, I want the text in the **Text** field to appear directly under the **Lookup** field, without creating a new row. When clicking on **Lookup** , it should display relevant information within the same field, making it easier to identify what we're looking for. I hope to achieve this using JavaScript or CSS.

---

<div class="post-metadata">

**Author:** ![Chris](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/chris/32/44_2.png) [@Chris](https://forum.kintone.dev/u/Chris)\
**Post date:** [March 5, 2025, 3:27pm UTC](https://forum.kintone.dev/t/i-want-the-text-in-text-to-be-copy-under-lookup/1465/6 "2025-03-05T15:27:48Z")

</div>

Hello @Master_Over_Sun

To display the value of a **"Single-line text"** field directly below a **"Lookup"** field within a table, customization using **DOM manipulation** is required.

Additionally, by leveraging **field change events** triggered during **[record creation](https://kintone.dev/en/docs/kintone/js-api/events/record-create-events/field-change-event/)** or **[record editing](https://kintone.dev/en/docs/kintone/js-api/events/record-edit-events/field-change-event/)**, you can execute a process whenever the **"Single-line text"** field is modified.

In theory, implementing a process that appends the value of the **"Single-line text"** field directly below the **"Lookup"** field when a change event is triggered could achieve behavior close to the desired outcome.

However, while attempting to create a reference implementation, I encountered several challenges that would require additional **DOM manipulation** , making implementation quite complex:

### **Challenges:**

- **Identifying the correct row being modified**
  - While the **table ID** can be obtained in the **record editing screen** , it is **not available** on the **record creation screen** , requiring an alternative approach.

- **Checking whether an element embedded via DOM manipulation in the "Lookup" field already exists**
  - Without this validation, duplicate elements may be generated with each execution.

Additionally, during testing, I found that even on the **record detail screen** , when a row is added, the **table ID becomes null** , making it **impossible to determine which row is being modified**. This further complicates implementing a reliable process for handling added rows.

So in the end, instead of using the above method, it would be much easier to change the key field to one that can be more easily identified. Since the key field is what is displayed in a **Lookup** field, adjusting it could simplify the process significantly.

Additionally, **[DOM manipulation should be avoided in Kintone](https://kintone.dev/en/tutorials/development-productivity/how-to-avoid-regressions/)**, as system updates may introduce regressions that could break the implementation.
