# Cant i create a dropdown on subtable ?

**URL:** <https://forum.kintone.dev/t/cant-i-create-a-dropdown-on-subtable/377>\
**Category:** General\
**Tags:** drop-down-field\
**Created:** [May 15, 2021, 7:01am UTC](https://forum.kintone.dev/t/cant-i-create-a-dropdown-on-subtable/377 "2021-05-15T07:01:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [May 15, 2021, 7:01am UTC](https://forum.kintone.dev/t/cant-i-create-a-dropdown-on-subtable/377/1 "2021-05-15T07:01:29Z")

</div>

I have a list of data retrieved from the Api request, and a subtable has drop-down lists.

![](https://developer.kintone.io/hc/user_images/cnzqrFiO4OahYz7aMBevtA.png)

I would like to add the data list to the dropdowns.

I have referred to the following link. It shown me how to create a dropdown on space. Howerver, the problem is that the space cannot be created in the subtable. [https://developer.cybozu.io/hc/ja/articles/360014149732-kintone-UI-Component-v0を使って動的ドロップダウンを作成しよう-?fbclid=IwAR3uz5DHV8\_DkZHAg-1L8zYiHQrKFzrnfzUDbxt7gNLc3vE17-2wzxQmPu8](https://developer.cybozu.io/hc/ja/articles/360014149732-kintone-UI-Component-v0%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E5%8B%95%E7%9A%84%E3%83%89%E3%83%AD%E3%83%83%E3%83%97%E3%83%80%E3%82%A6%E3%83%B3%E3%82%92%E4%BD%9C%E6%88%90%E3%81%97%E3%82%88%E3%81%86-?fbclid=IwAR0JZ0CBqWNf9MzoebEyxTK0ak9YUcBU7DFxpTEzmtkwfwZbgN-E0OQGJDk)

Is there any way to create a dropdown on subtable?

Thank you.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [May 17, 2021, 3:30am UTC](https://forum.kintone.dev/t/cant-i-create-a-dropdown-on-subtable/377/2 "2021-05-17T03:30:54Z")

</div>

Hello Phúc Nguyễn Đình,

&nbsp;

The “kintone UI Component” in the article is v0, and there are different types of versions of the kintone UI Component.

Their latest version currently is 0.7.8.

&nbsp;

Therefore, if you update the “kintone UI Component,” you would need to modify the code.

The code does not correspond to tables.

&nbsp;

Please take a look at some articles below for more details for this matter;

&nbsp;

Kintone UI Component:

[https://developer.kintone.io/hc/en-us/articles/360018942794](https://forum.kintone.dev/hc/en-us/articles/360018942794)

&nbsp;

Plug-in settings Kintone UI Component guide:

[https://developer.kintone.io/hc/en-us/articles/900005445343](https://forum.kintone.dev/hc/en-us/articles/900005445343)

&nbsp;

kintone-ui-component Versions:

[https://kintone-labs.github.io/kintone-ui-component/latest/versions/](https://kintone-labs.github.io/kintone-ui-component/latest/versions/)

&nbsp;

Hopefully, this helps.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [June 14, 2021, 10:50am UTC](https://forum.kintone.dev/t/cant-i-create-a-dropdown-on-subtable/377/3 "2021-06-14T10:50:29Z")

</div>

@Sean

&nbsp;Is there any way to integrate Kintone UI Component to Kintone event? It seems like they have their own methods. And when I combine with the native Kintone UI. It is difficult to design the code. Especially, when I have to write a code to handle errors.

&nbsp;As my experience so a far, I have to write a new error handling from scratch If I want to use Kintone UI Component.&nbsp;

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [June 15, 2021, 11:13pm UTC](https://forum.kintone.dev/t/cant-i-create-a-dropdown-on-subtable/377/4 "2021-06-15T23:13:52Z")

</div>

Hello PaKaNoSuKi KeNuiCha,

You can integrate Kintone UI Component into the Kintone event.  
Can you give me a specific example of what kind of error you are experiencing and what you are trying to do?

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [June 17, 2021, 10:40am UTC](https://forum.kintone.dev/t/cant-i-create-a-dropdown-on-subtable/377/5 "2021-06-17T10:40:46Z")

</div>

@Yuzo Arai

Thank you, for example I create a button with Kintone Ul Compenent naming "uomBtn". How can I access this field in event object in Kintone.events.on? It is not integrate to event.record.

> uomBtn.on('change',(value)=\>{
> 
> &nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;id&nbsp;=&nbsp;"31\_5692604-:23-text";
> 
> &nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(id).value&nbsp;=&nbsp;"";
> 
> &nbsp;&nbsp;&nbsp;&nbsp;if(value.toLowerCase()==="meters"){
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(id).setAttribute("disabled",true);
> 
> &nbsp;&nbsp;&nbsp;&nbsp;}else{
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(id).removeAttribute("disabled");
> 
> &nbsp;&nbsp;&nbsp;&nbsp;}
> 
> });

&nbsp;

I tried to set on change and disable the filed. But, I don't have event object. So I don't sure how I can disable it.&nbsp;

&nbsp;

And because I can't find a way for it to integrate normally with event object. So I have to create uomAlert separately for alert an error.

> var&nbsp;uomAlert&nbsp;=&nbsp;new&nbsp;kintoneUIComponent.Alert({text:&nbsp;"REQUIRED",type:"error"});

&nbsp;

Thank you in advance for your help.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [June 18, 2021, 4:25pm UTC](https://forum.kintone.dev/t/cant-i-create-a-dropdown-on-subtable/377/6 "2021-06-18T16:25:41Z")

</div>

Hi PaKaNoSuKi KeNuiCha,

&nbsp;

It is not possible to include change events such as buttons generated by  
Kintone Ul Compenent in kintone.events.on, nor is it possible to retrieve the value in the event object.

&nbsp;

As you know, if you want to return an error in an event such as a button generated  
by Kintone Ul Compenent, you need to create a separate process.

&nbsp;

However, if you have set the value of the field in the Kintone Ul Compenent process,  
it may be possible to check the value in the event before saving in the Add/Edit Record screen and return an error.

&nbsp;

Please take a look at these help pages for reference;

Save Submit Event app.record.create.submit:  
[https://developer.kintone.io/hc/en-us/articles/213149077#SaveSubmitEvent](https://developer.kintone.io/hc/en-us/articles/213149077#SaveSubmitEvent)

Save Submit Event app.record.edit.submit:  
[https://developer.kintone.io/hc/en-us/articles/213149017#SaveSubmitEvent](https://developer.kintone.io/hc/en-us/articles/213149017#SaveSubmitEvent)

&nbsp;

Hopefully, this helps.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [June 23, 2021, 3:24am UTC](https://forum.kintone.dev/t/cant-i-create-a-dropdown-on-subtable/377/7 "2021-06-23T03:24:11Z")

</div>

@Sean

Thanks for your answer. It is not plug & play. I have to depend on API then. Actually, it will better if Kintone UL component provide any way to register the component. This can make my life a lot easier.&nbsp;&nbsp;
