Do Clear Lookup Field Using Javascript

Dear developers,

As this documentation stated (Run Lookup Field):

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.

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.






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.