Requesting the addition of URL encoding in the string formatter.
My current use case is in server connect, creating a link sent via email with values provided by users using a front-end form.
Requesting the addition of URL encoding in the string formatter.
My current use case is in server connect, creating a link sent via email with values provided by users using a front-end form.
on the server connect you can use Base 64 encoding/decoding.
I have tried it and it worked pretty well
However, there is no solution to do a similar action on the frontend
How do YOu decode? Everyone says you can do stuff but there is no documentation showing you how.
How did you overcome this @mebeingken? Custom formatter I’m assuming?
That won’t work for all cases. The “+” symbol which is part of base64 is not readable in URL.
Note: Just saw in another post that you realized this.
For those PHP users here you have a custom formatter for SC.
<?php
function formatter_urlencode($val) {
return urlencode($val);
}
You can then format any string by appending .urlencode()
Hey Jon,
Yes custom formatter is the way to go. This request is from a dark time when I was unaware of such magic, so I did a find/replace since I just wanted to be able to have a plus symbol in a url.
Interesting @JonL…
Could you please detail where you would hook such a formatter to make it accessible within server connect ?
Many thanks !
Please check:
As explained there👆🏻
URLencode formatter was implemented in Wappler 2.6.4
This topic was automatically closed after 3 days. New replies are no longer allowed.