Text replace in order to construct valid urls

I’m submitting some adresss data to the google maps api, eg to show customer location on a map, using the web widget. works well enough, so long as the customer name doesn’t include an ampersand &, if it does url parsing breaks down at google. (just for the call, not for the whole world :wink:

So hoping I can convert “&” to “and” in a TransView row and pass that in the url (or build the url in a TransView field entirely). Can’t see how to do this in application studio however, aside from writing my own epicor string replace function… hoping there’s a library already there I can access?

Thanks,
Chris

Use a set field widget and in the expression do a url encode call (JavaScript)

Using encodeURi or encodeURIComponent

You can also do it server side with a function call

1 Like

Thanks Jose, but where do I find the “set field widget”, or is that just the row-update control: yeah I think so; seems to work thanks!

Yeah Row Update sorry I never remember the exact names of the widgets.