function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
erikdozsaerikdozsa 

Create Territory lookup field on a custom Visualforce page.

Hi,

 

I would like to add a new custom lookup input field on a custom VF page. How can I achieve this?

Expected result: when I click on the glass near the input field a new window should show up and let me choose from existing territories.

 

Thanks so much!

Best Answer chosen by Admin (Salesforce Developers) 
erikdozsaerikdozsa

I found the solution. Sadly no lookup is allowed on Territory.

All Answers

justin_sfdcjustin_sfdc

<apex:inputField value={!Territory.name} id="territoryNames"/>

erikdozsaerikdozsa

For me this only creates an input text but no option for searching Territories. The glass is missing.

erikdozsaerikdozsa

I found the solution. Sadly no lookup is allowed on Territory.

This was selected as the best answer
Dev FindabilityDev Findability
So there is now way to create a territory hierarchy on visualforce page?