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

Granite Autocomplete Field Issue in Touch UI

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Apr 9, 2019 9:59 AM UTC

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

4 replies

arunpatidar
arunpatidarAccepted solution
New Participant
Apr 9, 2019 9:59 AM UTC

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

multiple="{Boolean}true" 

Translate
Arun Patidar
New Participant
Oct 28, 2022 2:28 PM UTC

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. 

Translate
Lalit_Saini
Level 2
Apr 9, 2019 4:55 AM UTC

Did anyone found a solution to this issue?

Translate
Level 3
Jun 8, 2018 10:27 AM UTC

Hi Anuradha,

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

Translate