Granite Autocomplete Field Issue in Touch UI | Community
Skip to main content
Level 2
May 17, 2018
Solved

Granite Autocomplete Field Issue in Touch UI

  • May 17, 2018
  • 3 replies
  • 2530 views

Hi,

I am using Autocomplete as sling:resourceType and have added "datasource" which fetches the list of "Id" and "Title".The options and values nodes are also present and point to  "granite/ui/components/coral/foundation/form/autocomplete/list" and "granite/ui/components/coral/foundation/form/autocomplete/tags" respectively.

The Autocomplete is rendering the data but when I select the Title from the Autocomplete, after selection the Id gets displayed in the field.

I need to display the same selected text in the input field and need the Id to be stored as value in the property of the node.

For eg : List is as below :

id = 1, Title = Item 1

id =2 , Title = Item 2

id= 3 , Title = Item 3

On selecting Item 1 in the Autocomplete List, the input field should display Item 1 itself and not "1" and value "1" should be stored in "name" property.

Please let me know if there is a solution for same.

Thanks,

Anuradha

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 arunpatidar

This could be the bug but for workaroud you can use mutiselect true for automcomplete field to display correct value.

multiple="{Boolean}true" 

3 replies

Level 3
June 8, 2018

Hi Anuradha,

Did you got solution for this. I'm also facing same issue. Please let me know if you resolved this.

Lalit_Saini
Level 2
April 9, 2019

Did anyone found a solution to this issue?

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
April 9, 2019

This could be the bug but for workaroud you can use mutiselect true for automcomplete field to display correct value.

multiple="{Boolean}true" 

Arun Patidar
October 28, 2022

Hi, I see that this bug wasn't fixed. And I also can't use your workaround solution for our implementation, as we need only a single choice. Do you have any other suggestions? 

Thanks in advance.