Some issue while calculating values via Quform

Home Forums Quform WordPress Some issue while calculating values via Quform

This topic is: not resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34983
    Crema
    Participant

    Hi
    I am using a script for some calculations from text input fields
    But I found in some cases one of the field values is not added properly
    I add comments on the line of code whose value is not calculating
    This code run perfectly fine majority of time but some time it misses a value
    Please let me know how I can resolve this issue.

    jQuery(function ($) {

    // For Factor calculation
    var calculate = function () {
    var total = -100;

    // Some time, This field value is not calculating
    // A text input field with numeric value
    var heightF= $(‘.quform-field-10_3’).val();
    if (heightF && heightF.length && $.isNumeric(heightF)) {
    total += parseFloat(heightF);
    }

    // A text input field with numeric value
    var weightF= $(‘.quform-field-10_39’).val();
    if (weightF && weightF.length && $.isNumeric(weightF)) {
    total -= parseFloat(weightF);
    }

    // Display the result to the user (optional)
    //$(‘#form-total’).text(‘Total: $’ + total);

    // Set the value of the hidden field (optional)
    $(‘.quform-field-10_120’).val(total).triggerHandler(‘change’);
    };

    // Calculate on page load
    calculate();
    // Recalculate when these text input fields are changed

    $(‘.quform-field-10_3’).on(‘keyup blur’, calculate);
    $(‘.quform-field-10_39’).on(‘keyup blur’, calculate);

    #34984
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #34985
    Crema
    Participant

    Hi Ally I send you the site URL and explained the issue privately into the feedback form

    #35001
    Crema
    Participant

    Hi Ally
    I am still waiting for your response. This issue is occurring very frequently Now, and affecting my auto-responder campaigns.
    I hope I will get a positive response from your end

    #35008
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy