Problem in pathfield in AEM 6.5 | Community
Skip to main content
samsundar23
New Participant
August 19, 2020
Solved

Problem in pathfield in AEM 6.5

  • August 19, 2020
  • 2 replies
  • 3298 views

I'm experiencing a problem in pathfield in AEM 6.5

 

I'm authoring an external link(http://www.google.com) in the pathfield and an auto-suggestion is coming up. When I moved to the previous field the cursor automatically jumps to pathfield again. This is causing a bit of inconsistency for the authors where most of the pathfields are authored with external link. Is there any way to control the auto suggestion in pathfield.(Refer screenshot 1a) - pathfield behavior 
(Or)

Shall I modify the resourceType to pathbrowser instead which doesn't have any auto-suggestion just like pathfield and there is no case of cursor jumping out problem. I want a concrete point to recommend pathbrowser over pathfield to the customer. Please suggest any way.
(Refer screenshot 1b) - pathbrowser behavior

Screenshot 1a:

 

Screenshot 1b

 

Thanks !

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijayalakshmi_S

Hi @samsundar23,

Pathfield supports suggestions as we type and is intended per the original functionality. It also supports multiple selections. 

Detailed inputs on the purpose is mentioned in - https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/pathfield/index.html

Pathbrowser might suit this particular use case of not bringing up suggestion. But it is deprecated and it is recommended to use Pathfield - This is per AEM 6.5.0

2 replies

samsundar23
New Participant
August 21, 2020

Thanks @vijayalakshmi_s 

 

To turn off suggestion, below highlighted in green - <coral-overlay> within <foundation-autocomplete> is responsible for the rendering of suggestion. 

You can create a new resource similar to OOB pathfield and comment this line -> Use the newly created resource to dialog field for authoring External Link.

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
New Participant
August 19, 2020

Hi @samsundar23,

Pathfield supports suggestions as we type and is intended per the original functionality. It also supports multiple selections. 

Detailed inputs on the purpose is mentioned in - https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/pathfield/index.html

Pathbrowser might suit this particular use case of not bringing up suggestion. But it is deprecated and it is recommended to use Pathfield - This is per AEM 6.5.0

samsundar23
New Participant
August 20, 2020

Hi @vijayalakshmi_s 

Thanks for your suggestion. If that is the case, is there any way to restrict the auto-suggestion coming up while using pathfield which is the reason behind this entire root cause analysis.