Hey, I am trying to get the value from my "Ask For Input" action to then Transform the text so that I can use it inside a URL to search with. (I have to replace the spaces with '+' so I can use in a url
So far, I first do the 'Ask For Input' and set that to a variable named: kbaseSearch.
I am able to use the 'Open Url/Open Url with Selection' if the phrase I enter is a single word with 0 spaces but if I use two words, it looks like it is getting encoded with "
and the "
is getting switched to %25
so the URL is encoding twice and %2522 is getting used.
Example: The url that I am getting sent to when the input I enter is csv integration is "https://mysite/dosearchsite.action?cql=siteSearch+~+%2522csv%20integration%2522&queryString=csv%20integration
, when it should be https://knowledge.walkme.com/dosearchsite.action?cql=siteSearch+~+%22csv+integration%22&queryString=csv+integration
Then I tried to use the JavaScript Transformer option but doesn't work because it seems to have to be a selection. Can I use the variable value in place of 'clipboardcontents' in the JavaScript Transformer action in this scenario and is that the best way to do this?
It would be even better if I could do this from the textinput field of one of the new menus, but couldn't figure that out
Thanks!