• Resolved nsys21st

    (@nsys21st)


    I try to input decimal value on editable calculated field, but it ignore point(.) unless I type it quickly with next number (e.g. typing 1.3 rapidly).
    How to make calculated field defer calculation if point(.) is inserted until a number after point(.) being inserted? Thank You

    • This topic was modified 3 years, 6 months ago by nsys21st.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @nsys21st

    I’ve tested your form and the field formats the decimal numbers properly. Please, watch the video by visiting the following link:

    https://resources.developers4web.com/cff/tmp/2021/09/27/video_o.mp4

    However, I’m checking your equations and I don’t understand why you don’t use the plugin flow.

    For example, the equation associated with the calculated field fieldname12 is:

    (function () {
        var berat = parseFloat(jQuery('[id*="fieldname' + '10_"]').val());
        function countDecimals(value) {
            if ((value % 1) != 0)
                return value.toString().split(".")[1].length;  
            return 0;
        };
        var result = berat/fieldname11;
        if(0<countDecimals(result)) 
            return CEIL(result);
    })()

    You’re trying to access the fields values with jQuery for no reason. This equation can be implemented simply as follows:

    CEIL(fieldname10/fieldname11)

    And the same happens with the other equations.

    Best regards.

    Thread Starter nsys21st

    (@nsys21st)

    It worked. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot input decimal value on calculated field’ is closed to new replies.