Do Clear Lookup Field Using Javascript

2 followers Follow
Avatar
Afief

Dear developers,

As this documentation stated (Run Lookup Field):

https://developer.kintone.io/hc/en-us/articles/213149017-Record-Edit-Event#run_lookup_fields

That we were able to run lookup field using custom javascript.

However, I want to know if there is a way to clear lookup field using custom javascript.

I really need answer for this, as this will affect my work for client application.

Any answer would be appreciated, thank you very much.

1

2 comments

Avatar
Junko Werner 1 vote

Hi Afief,

Unfortunately, there seems to be no function to clear lookup field by the JavaScript API.

Since it is possible to get a lookup field automatically with the API, you can have a record of blank data in the app to look up, and you can obtain the record automatically to achieve the same result of getting the blank data on the lookup field.
 
Thanks.
 
Junko

 

1
Avatar
Afief 0 votes

Hi Junko,

I just found the solution by using clear() function and it's worked on both desktop and mobile.

Thank you for the reply.

Afief

0

Please sign in to leave a comment.