• Resolved informativos

    (@informativos)


    Hi! We have made a custom calculator to make a simple tax calculation related to donations in our site. It has two steps:

    1.- where you type the amount and the taxes are automatically calculated
    2.- The ‘next’ where we detail the operations (and the one that has the bug)

    In this menu you have an slide bar and WORKS as expected BUT if you TYPE the amount (without press ‘enter key’):
    a) it resets after one second aprox. ??? and/or
    b) it rounds out the number if you press the ‘enter’ key???

    Any idea about that? It happens with the new update and with the last version before.

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

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

    (@codepeople)

    Hello @informativos

    The plugin does not exactly reset the value. The input box and the slider are synchronized components of the slider field.

    If you stop typing the value, the plugin synchronizes both components by rounding the typed number to the nearest step entered in the slider settings.

    For example, you have configured the step as 100 in the slider field, and you type 30, after two inactive seconds both values are rounded to the nearest step, in this case, 0. If you type for example 52, after two seconds of inactivity, it is rounded to the nearest step multiple, in this case, 100.

    I guess it will be better to round both values to the next step multiple. Could you let me know your opinion, please?

    Best regards.

    Thread Starter informativos

    (@informativos)

    Well… yo be honest, that′s not the way I expected the calculator was going to work. I mean, if I type an exact amount I can′t figure nor expect that this number would change automatically. As in any calculator online if I type a number it′s supposed that it won′t change. It′s … uncommon

    Plugin Author codepeople

    (@codepeople)

    Hello @informativos

    Please, remember the input field and the slider are components of the same slider field. The value entered through the input box must be valid for the field as a whole. If you don’t want the number entered through the input box to be adjusted, I recommend you to enter the number 1 as the step attribute in the slider field.

    Best regards.

    Thread Starter informativos

    (@informativos)

    Nops… it doesn′t work. In fact I think you could take a view to the calculator in our site to watch the response of the calculator (in step 2)

    ref.https://fundacion.informativos.net/faqs/#f1p1

    *intro any amount (between 0 – 60.000) and wait a couple of seconds. Following your recommendations I have set the ‘steps’ to 1$

    *the problem is when you type the amount (number) if you use the slider it works as expected. IMPORTANT: I have noticed it happens only if you press the ‘ENTER’ key after type the amount. If you ‘wait’ it works fine

    • This reply was modified 3 years, 2 months ago by informativos.
    Plugin Author codepeople

    (@codepeople)

    Hello @informativos

    I’m testing your form, and the slider is working fine from my side. Could you tell me the values you are entering to repeat the same process, please?

    Best regards.

    Thread Starter informativos

    (@informativos)

    The sl8der works fine.
    If you type the number it works fine
    BUT if you hit the ‘enter’ key after typping the number then the data resets.

    Tell me if you can reproduce this. If not I can record a screen video

    Plugin Author codepeople

    (@codepeople)

    Hello @informativos

    Could you install the latest update of the plugin and let me know if the issue persists, please?

    Best regards.

    Thread Starter informativos

    (@informativos)

    I have updated. It’s solved!!

    Thank you!!!

    Plugin Author codepeople

    (@codepeople)

    Excellent !!!!

    Best regards.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘The dynamic bar resets automatically for no reason’ is closed to new replies.