• Resolved khanehfitness

    (@khanehfitness)


    HI
    I HAVE THREE FORMS IN A WEB PAGE WITH CALCULATED FIELDS.
    I WANT TO USE THE RESULTS OF DATA CALCULATED IN FORMS NO.1&2 IN FORM NO.3 AS AN INPUT.
    HOW CAN I DO THAT?
    THANKS

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

    (@codepeople)

    Hello @khanehfitness,

    I will describe the process with an example:

    Assuming there are two forms in a same page, and you want to use the fieldname1 field, in the first form, in the equations of second form.

    – First, assign an unique class name to the fieldname1 field in the first form, for example: my-special-field

    The class names are assigned to the fields through their attributes: “Add CSS Layout Keywords”

    – Second, insert a hidden field in the second form (I’ll call it fieldname123) and assign to it a custom class name too: my-receptor-field

    – Third, in the second form insert a “HTML Content” field with the following piece of code as its content:

    
    <script>
    jQuery(document).on('change', '.my-special-field input', function(){
    jQuery('.my-receptor-field input').val(this.value).change();
    });
    </script>
    

    – Finally, in the equations associated to the calculated fields in the second form, you can use now the fieldname123 as usual, because it is a field in the same form.

    Best regards.

    Thread Starter khanehfitness

    (@khanehfitness)

    THANK YOU VERY MUCH.
    YOUR SUPPORT IS BEYOND EXPECTED

    Plugin Author codepeople

    (@codepeople)

    Hello @khanehfitness,

    It has been a pleasure.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘FIELD NAMES’ is closed to new replies.