• Resolved aesch777

    (@aesch777)


    I am trying to create a radio button with three choices that include calculations and Inserting Dates, where Blanks can be autofilled after checking the one of the three options.

    Please check one –

    ___ I will pay my tuition in full before September 15, 2018 (fieldname1 -$800 registration fee = $_________. //(If checked, blanks are autofilled.)

    ___I will begin paying my tuition off next month on the 1st of (enter month and year) in (#) monthly payments of ((fieldname1-$800) /#) of months from now until August 1, 2018. My payments are due on the 1st of each month starting next month on (Select Date)

    ___ I will begin paying my tuition off the 1st of (enter month And year) with payments of ((fieldname1-$800) /#))

    All the best,

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

    (@codepeople)

    Hello,

    I’m not totally sure about your question, but if you want populate some texts in the form with values calculated by the equations, you should add some of javascript code as part of the equation.

    I’ll try to explain the process with an example. Assuming you want to display a text as follows:

    The calculated result was ……, thank you very much for using our calculator.

    And the current equation is: fieldname1+fieldname2

    A solution would be insert a “HTML Content” field with the following piece of code as its content:

    The calculated result was <span class="result-here"></span>, thank you very much for using our calculator.

    and then, you can edit the equation as follows:

    (function(){
    var result = fieldname1+fieldname2;
    jQuery('.result-here').html(result);
    return result;
    })()

    as the calculated field is being used as auxiliary, you can tick the checkbox for hiding it from the public form in the properties of calculated field.

    Note: The same principle can be applied to other controls, for example, the texts of a radio buttons, checkboxes, Instructs for users, etc.

    Best regards.

    Thread Starter aesch777

    (@aesch777)

    Thanks that has helped me.

    When using radio buttons, Is there a way the user can fill in information on one of the choices, and the calculation will show up in the blanks?

    Say the user checks this option:

    ___I will begin paying my tuition off next month on the 1st of (enter month and year here) in (enter # here) monthly payments of (“result here”) of months from now until August 1, 2018. My payments are due on the 1st of each month starting next month on (Select Date)

    The user enters (month and year), and (select date) for information that will be submitted on the form.

    -And enters (# of months) to calculate answer, which will be seen in “result here”

    From the example you have given me, can I still add HTML Content: through the radio buttons’ choice texts? I am still unsure on how to do this.

    Thanks for your time!

    All the best,

    Plugin Author codepeople

    (@codepeople)

    Hello,

    Using the controls in the plugin it is not possible format the form as a paragraph (like in your ticket). Create a form in this way would be a really hard process using the plugin.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Radio Buttons, Calculated Answers, Blanks are Autofilled’ is closed to new replies.