• Resolved lionelwriter

    (@lionelwriter)


    Hello,

    I would like to know how can i auto calculate values in form without pressing button.

    Thank you

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    Actually the fields are always calculated without pressing any button. Also i just checked your form and it seems to be working without pressing any button. Did you fix this already?

    Regards!

    Thread Starter lionelwriter

    (@lionelwriter)

    Hello,

    well the calculation works when you click outside the field box without pressing any button. What i mean is that by typing in the first field, the other fields are calculating automatically. Is it possible ?

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Ah got it, that was done like that on purpose for performance reasons. If you want to change it please open the file js/formBuilder/formelements.js and change this:

    this.JQueryElement.find( '.redNaoInputText').change(function(){self.FirePropertyChanged();});

    for this:

    this.JQueryElement.find( '.redNaoInputText').on('input',function(){self.FirePropertyChanged();});

    Regards!

    that doesn’t work
    only if you press outside
    please how can i do that the form recalculated total automatically?

    Edgar helped me by email:

    please also try to change this:

    rnJQuery(‘#’+this.Id+ ‘ .redNaoNumber’).change(function(){

    for this:

    rnJQuery(‘#’+this.Id+ ‘ .redNaoNumber’).on(‘input’,function(){

    And it works!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Auto calculate fields’ is closed to new replies.