How can I use calculation in my form?

  • Profile Image
    Asked on November 22, 2017 at 04:38 PM


    I have tried a few different widgets and such, but cannot find something that will allow me to have a read-only result based on a few field inputs. What I want to do is have three fields:

    - How many people to be trained

    - How many people per training session

    - How many hours are needed per training session

    I then want a read-only field that will calculate these three fields like this:


    Basically, we have a 7-hour workday. What I want to figure out is how many sessions we can squeeze into a 7-hour work days based on the length of each session. Then, how many days will it take to train all of the sessions.



  • Profile Image
    Answered on November 22, 2017 at 05:08 PM

    Please follow this screencast to know how to implement this calculation:


    You can follow this guide to know more about form calculation:

    To make the calculation field readonly, please inject the following css in your form builder's CSS tab:

      pointer-events: none;

    Follow this link to know how to inject custom css in your form:

    Here #input_11 is the id of my calculation control. In your case, this id will be different.

    Please refer to this guide to know how to get your calculation field id:

    Hope this will help.

    If you have any further query or issue, please let us know.