Dropdown Dynamic Selector Problem with "&"

Hi everyone,

I am trying to make a dynamic selector with variable named → tatlandirici

below is my selector code written at Click activity.

“”

image

It is working very well if the variable string does not contain “&” symbol. However, when there is & in the variable the selector gives the below error:

image

In other words, if the variable is APPLE it works fine but it does not work when the variable is APPLE & ORANGE

Thank you.

Regards,
Batu

1 Like

No worries
In the variable before assign it to the selector use a assign activity like this
In_variable = In_variable.ToString.Replace(“&”,”&”)

Now pass that In_variable to the selector
We need to enslave those symbols to avoid getting misunderstood by XML

For more details here you go
https://www.liquid-technologies.com/XML/EscapingData.aspx

Cheers @batuhan

2 Likes

Thank you very much Palaniyappan!

1 Like

No worries
Cheers @batuhan

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.