Adding code in wix studio

@Filip_Kulikowski

Replace "#form1" and "form_field_be63" with your actual values. This code should immediately replace any commas entered with dots… probably. :innocent:

$w.onReady(function () {

    $w("#form1").onFieldValueChange(() => {

        const fieldValues = $w("#form1").getFieldValues();
        fieldValues["form_field_be63"] = fieldValues["form_field_be63"].replace(/,/g, ".");

        $w("#form1").setFieldValues(fieldValues);

    });

})
1 Like