Share feedback, ideas and get community help

Updated 3 days ago

How to replace ""." with "," ????????

Variable name = Valor da receita

When I use the input NUMBER when I put for example (50,30) or (50.30)



It automatically gives me the result of (50.30)

I want as a result = > (,)

Does anyone know how?
I put this variable before sending (50.30) to my Google Sheets, but it doesn't work!
{{ Valor da receita.replace(".", ",") }}
A
N
!
18 comments
Hi Nyx,
Here's your corrected code, where the brackets should be around the variable name only in the "Code" part of the Set variable block:
{{Valor da receita}}.replace(".", ",")
Did not worked =(..
{{Valor da receita}}.replace(".", ",") not working
Please if you know how to do it... can you try explain ?
Basically, the number input type produces a numeric type in JavaScript, which doesn’t have a replace method. You’d need to convert it to a string before applying replace.

For example:
Plain Text
{{Valor da receita}}.toString().replace(".", ",");

or
Plain Text
{{Valor da receita}}.toLocaleString("pt-BR", { minimumFractionDigits: 2 });
{{Valor da receita}}.toString().replace(".", ","); did not work
let see

{{Valor da receita}}.toLocaleString("pt-BR", { minimumFractionDigits: 2 });
send a print of this part of the flow
ok one sec
worked!!!!!!!!!!!!
Add a reply
Sign up and join the conversation on Discord