Auto complete - selecting a result that contains an ampersand doesn't work as expected

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Auto complete - selecting a result that contains an ampersand doesn't work as expected

fola.olasebikan
Its not possible to select a result that contains an ampersand (&) from an auto complete element.
Selecting a result that has an ampersand results in an empty edit box (instead of showing the selected result in the edit box).


See the ticket below for more info:

https://github.com/orbeon/orbeon-forms/issues/1082

Thanks,
Fola.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].


Reply | Threaded
Open this post in threaded view
|

Re: Auto complete - selecting a result that contains an ampersand doesn't work as expected

Alessandro  Vernet
Administrator
Hi Fola,

A quick update on this one: I managed to reproduce the issue, and will see if I can find a quick fix for it. I'll let you know.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Auto complete - selecting a result that contains an ampersand doesn't work as expected

Alessandro  Vernet
Administrator
In reply to this post by fola.olasebikan
Hi Fola,

The issue is that the Spotify service you're calling returns a 400, saying it doesn't find any information about the selected track, as the track name it receives isn't properly URL-encoded. You can encode the value by using {encode-for-uri($fr-search-value)} instead of just {$fr-search-value} in the resource, and this isn't something that the component can do automatically for you.

In fact, this should always be done, as you never know what characters users will type, and I updated the documentation accordingly:

http://wiki.orbeon.com/forms/doc/user-guide/form-builder-user-guide#TOC-Autocomplete

You'll let us know if this works for you.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Auto complete - selecting a result that contains an ampersand doesn't work as expected

fola.olasebikan
On Saturday, June 29, 2013 2:15:13 AM UTC+1, Alessandro Vernet wrote:

> Hi Fola,
>
>
>
> The issue is that the Spotify service you're calling returns a 400, saying
>
> it doesn't find any information about the selected track, as the track name
>
> it receives isn't properly URL-encoded. You can encode the value by using
>
> {encode-for-uri($fr-search-value)} instead of just {$fr-search-value} in the
>
> resource, and this isn't something that the component can do automatically
>
> for you.
>
>
>
> In fact, this should always be done, as you never know what characters users
>
> will type, and I updated the documentation accordingly:
>
>
>
> http://wiki.orbeon.com/forms/doc/user-guide/form-builder-user-guide#TOC-Autocomplete
>
>
>
> You'll let us know if this works for you.
>
>
>
> Alex
>
>
>
> -----
>
> --
>
> Follow Orbeon on Twitter: @orbeon
>
> Follow me on Twitter: @avernet
>
> --
>
> View this message in context: http://discuss.orbeon.com/Auto-complete-selecting-a-result-that-contains-an-ampersand-doesn-t-work-as-expected-tp4656949p4656963.html
>
> Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

Thanks Alex.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].