Forums

"subtract from" adds instead of subtracting?

Matten 28 Jul, 2017
Hello,

On my form, I have added a checkbox (with a value of 15 in my case).
Under "events" I have:
  • added a "checked" event with the action "add to"

  • added a "unchecked" event with the action "subtract from"


  • Both refer to the same element identifier and my idea was to have the element identifier (which represents a total due amount for the user to pay) to update accordingly.
    So checking the box should add the value of 15 to the total amount and unchecking the box should subtract the value of 15 from the total amount.

    The adding works fine but when the box is unchecked it also adds the value to the total amount instead of subtracting.

    Any ideas here? Am I missing something or maybe not doing something as I should in order to get the result I want?

    Kind regards,
    Matt.
    Max_admin 03 Aug, 2017
    Hi Matten,

    I have confirmed that there is a bug in this part, but I'm still working on it, it should be fixed in the next update.

    Best regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    Matten 03 Aug, 2017
    Hi Max,

    great to hear and thanks for the feedback!

    Kind regards,
    Matt.
    Matten 31 Aug, 2017
    Hello Max,

    Seeing there was an update very recently, could you tell me if the issue I brought up should be fixed? (because I just tried it and it looks like it isn't)

    Kind regards,
    Matt.
    Max_admin 31 Aug, 2017
    Hi Matt,

    Unfortunately not yet, but its still on the todo list.

    Best regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    Max_admin 06 Sep, 2017
    Answer
    Hi Matt,

    This has been fixed and should be available in the 6.0.10 update!

    Best regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    Matten 27 Sep, 2017
    Good to hear!
    (sorry for just seeing this only now)

    KR,
    Matt.
    This topic is locked and no more replies can be posted.