• Resolved Cacique

    (@carlosjavier10)


    Avoid sending the form if calculations are = 0
    greetings, in my form is made the sum of several products, what I want is to avoid sending the form if the calculation = 0, but it does not work, how can I achieve what I want? or how to place the condition of visibility of the submit button to be hidden if the calculation is equal to 0, I have already tried several times with: hide if calculation = 0, hide if calculation = 0.00 and hide if calculation = $0.00. de ante mano muchas gracias por su tiempo.

    Translated with https://www.DeepL.com/Translator (free version)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @carlosjavier10,

    Tust you are doing good and thank you for reaching out to us.

    Could you please share an export of the form so we can take a closer look at how the form is configured? Please use a service like pastebin.com or Google Drive to share the export of the form.

    Please find more about how to export a form here: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    We look forward to hearing back from you.

    Kind Regards,
    Nebu John

    Thread Starter Cacique

    (@carlosjavier10)

    ok! aca dejo el url:

    https://drive.google.com/file/d/12rNkUg5KfugpK9gLDk0DXJtKGEgtf2vr/view?usp=sharing

    aunque modifique el formulario ya no uso radio buttons sino select desplegables! sigo con el mismo requerimiento!
    tambien me ha dado problemas la paginacion, debo abrir otro hilo? o lo comento aqui mismo?

    Thread Starter Cacique

    (@carlosjavier10)

    ok! here is the url:
    https://drive.google.com/file/d/12rNkUg5KfugpK9gLDk0DXJtKGEgtf2vr/view?usp=sharing

    although i modified the form i don’t use radio buttons anymore but select dropdowns! i still have the same requirement!
    I have also had problems with the pagination, should I open another thread? or should I comment it here?

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @carlosjavier10

    Thanks for sharing the form!

    I checked it and the form is “almost” correct except two issues:

    1. Your “Submit” button is currently set to be hidden based on the value of the calculation-2 field; it’s set to be hidden if the value of that calculation equals 0 but it will never happen because the formula in that calculation is simply “1+1” and that always equals 2. So button will never be hidden.

    I’m assuming the calculation to verify select fields is “calculation-1” so you should change “Submit” button visibility condition. Additionally, I’d suggest showing it if calculation value is more than 0 rather than hiding if it’s 0.

    When you edit “Submit” button visibility settings, remove current condition and then

    a) select “SHOW this field if ANY of the following rules match”
    b) and add rule “Total is greater than 0”
    c) then apply settings

    2. The calculation in “Total” (calculation-1) is incorrect. Currently it is this

    {select-1}+{select-2}+{select-4}+{select-5}+{select-6}+{select-7}+{select-8}+{select-9}+{select-10}{select-11}

    The problem is that there’s no any operator between select10 and select 11. I’m not sure if that should adding or multiplying (as no operator would suggest multiplication) but there must be an operator added, otherwise the calculation will always fails – and that would be yet another reason for the visibility rules of “Submit” button not working correctly.

    I have tested both these adjustments on my copy of your form and that works as expected so please make them and it should be fine.

    ————–

    On a side note: I just responded to your other ticket here

    https://www.ads-software.com/support/topic/validate-one-of-several-radio-buttons/#post-16452535

    not knowing at the time about this one; I think it makes my response there redundant so I think you can ignore it and we can continue here.

    Best regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @carlosjavier10 ,

    We haven’t heard from you for some time now, so it looks like you don’t require our further assistance.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Avoid sending the form if calculations are = 0’ is closed to new replies.