Format des nombres : Comment mettre une virgule et supprimer les points décimaux ?

  • Allianceformation
    Demandé le 29 octobre 2024 à 05:53

    Bonjour,

    je souhaite avoir la virgule par défaut pour les cases chiffre et non le point, comment faire?

    Merci

    Serge

  • John Matthew Jotform Support
    Répondu le 29 octobre 2024 à 08:31

    Hi Serge,

    Thanks for reaching out to Jotform Support. Unfortunately, our French Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in French, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, going back to your question, do you wish to use a comma for large numbers in your form, and remove the decimals? If yes, you can use the Form Calculation widget to do so. Let me show you how:

    1. In Form Builder, click on the Add Element button on the left side of the page.
    2. Under the Widgets tab, drag and drop the Form Calculation widget.
    3. From the menu that will open up on the right, click on the Function icon and choose Comma Separate.
    4. Next is click on the Add Field button, and select the field that you want to separate the number with a comma.

    Format des nombres : Comment mettre une virgule et supprimer les points décimaux ? Image 1 Screenshot 40

    To remove the decimal place, here's how:

    1. From the menu on the right, click on the blue Options button at the bottom.
    2. In the dropdown, select 0 from Decimal Places in Numerical Result.
    3. Click on Go Back and finally, click on the Save button.

    Format des nombres : Comment mettre une virgule et supprimer les points décimaux ? Image 2 Screenshot 51

    Check out my result below:

    Format des nombres : Comment mettre une virgule et supprimer les points décimaux ? Image 3 Screenshot 62

    You can check and test my Demo Form if it meets your requirements. You can also Clone it for you to see how I set the Form Calculation widget on my form.


    Give it a try, and let us know if there's anything else we can help you with.

  • Allianceformation
    Répondu le 29 octobre 2024 à 08:45

    Hi John,

    I just want to replace '.' by ',' whatever the number

    (ex: 50.00 into 50,00)

    Thank you

  • John Matthew Jotform Support
    Répondu le 29 octobre 2024 à 09:04

    Hi Serge,

    I see, that helped me understand what you're wanting to do. In this case, you can use the Masked Input widget. With this, you can change the decimal separator to a comma. Let me show you how:

    1. In Form Builder, click on the Add Element button on the left side of the page.
    2. Under the Widgets tab, drag and drop the Masked Input widget.
    3. From the menu on the right, enter , (comma) under the Decimal Separator field.
    4. Finally, click on Update Widget.

    Format des nombres : Comment mettre une virgule et supprimer les points décimaux ? Image 1 Screenshot 30

    Check out my result below:

    Format des nombres : Comment mettre une virgule et supprimer les points décimaux ? Image 2 Screenshot 41

    Give it a try, and reach out again if you have any other questions.

Votre réponse