a!currency: force recognize "," instead of "." as decimal

My application is specifically for a local where the decimal symbol used is comma " , " and not a period " . ".
So, the decimals will be inputted by the portal users as `5,55` instead of `5.55`

So my current code is the following:

a!textField(
  label: "The amount of money for payment",
  labelPosition: "ABOVE",
  instructions: "",
  helpTooltip: "The amount of money for payment",
  value: if(
    local!variant_value_for_payment > 0,
    a!currency(
      isoCode: "BRL",
      value: local!variant_value_for_payment,
      format: "LOCALE"
    ),
    null
  ),
  saveInto: {
    a!save(
      local!variant_value_for_payment,
      todecimal(save!value)
    )
  },
  refreshAfter: "KEYPRESS"
),

I've read the a!currency docs and the main question for the best solution for me should be:

→ How may I be able to forcely make the system reads "100.50" and recognizes as " 100.00" and keeps that format?

Thanks from now on

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data