• Resolved zirekx

    (@zirekx)


    Hello,
    How can I change the display of the number field in the e-mail notifications, because despite the fact that I set it to 0 decimal places, it gets in the e-mail notifications with zeros after the decimal point. I would like the number field in the mail to display as an integer and not with zeros after the decimal point.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @zirekx

    I hope you’re well today!

    If the number field is set to use 0 decimal places, e-mail notification should follow that.

    I just tested it on my own test site, by setting up and submitting a simple form with just a single “numer” type field, set to 0 decimal places, and including it in e-mail notification first using {all_fields} variable and second – as an individual field.

    In both cases I got expected result.

    That said, is it a number type filed or some other field that contains numerical value (e.g. calculation)? Is it just one field or all?

    Could you share the form in question with us to test? To do so:

    – export the form from Forminator
    – put the export code on pastebin.com service or export file on your Google Drive, Dropbox or similar service
    -share direct link to it in response

    We’ll test and check this specific form then to see what’s happening and how to fix it.

    Kind regards
    Adam

    Thread Starter zirekx

    (@zirekx)

    I would not really like to share the form and the website, but I will try to explain in more detail.
    Maybe the first one will describe what my goal is, and then what I got.
    Objective:
    My goal is to set the Number field to integers, which means that the user cannot enter a decimal number such as 1.26 but integers such as 1. And I would like an integer to be displayed in the e-mail message.

    What I got:
    I added the field “Number”. In the settings in the Formatting field I set ROund To 0 decimals. And this made the user unable to enter a non-integer number, but also what I mean is that in the email notification he still gets zeros after the decimal point.
    I checked it in different website and there worked but when i try it on my website it still gets me 00 after decimal point.

    If there is no way to fix it then maybe I could edit the plugin files to set this option statically. I really need it.

    • This reply was modified 2 years, 11 months ago by zirekx.
    • This reply was modified 2 years, 11 months ago by zirekx.
    • This reply was modified 2 years, 11 months ago by zirekx.
    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @zirekx

    I hope you are doing well.

    I tested this on my lab site https://monosnap.com/file/YGL0XwshEpGvRx6zgMxJzGVoJDiPoR

    It gets only the integers, in case it is not happening on your end, could you share the form so we can take a closer look?

    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @zirekx ,

    We haven’t heard from you for a while now, so it looks like you don’t have more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Incorrect display of the number field in the E-mail notification.’ is closed to new replies.