Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

Dynamics Portal open lookup with click on the input field (not the lookup icon)



we want to open the lookup (account lookup) when the user clicks on the Account Lookup field instead of the icon.

It is a lookup field on a form within dynamics portal.


Thanks for suggestions/help!

Resolver I
Resolver I

Hi @newmay 


You can probably do this with a script if it's a hard requirement.

But with out-of-the-box configuration you can turn the lookup field into a drop-down. Would that solve it for you? 


yes I am aware of the entity form metadata function, yet there are too many accounts so it is not an option.


I need to write javacript in order to achieve this I think, but I dont know how to achieve it

Solution Sage
Solution Sage

Someone probably has a better way, but you could just hide the Icon/button with JS/CSS by setting the 'visibility' and then add an event listener on click or focus etc on the input that fires an on click event on the icon/button.

//Note: if you only have one Lookup on the form then you can fire the button using 


// but if you have more than one Lookup on the form you will have to find the button node by starting with a unique id associted with the field and then locating the button to .click()


Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (4,985)