• Resolved Francis

    (@emolotel)


    Can the values ??of a calculated field be read between one form and another?

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @emolotel

    Not directly, but you can:
    – assign the value of the field in the form A to a field in the form B
    – and then, to use the field in the form B in the equations associated to the calculated fields in the form B as usual.

    The process would be:

    1. Assign an unique class name to the field in the form A, for example: field-a

    2. In the form B insert a hidden field, and assign to it an unique class name too, for example: field-b

    3. Now, in the form B, insert a “HTML Content” field with a piece of code similar to the following one, as its content:

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

    and that’s all.

    Finally, you can use the hidden field in the form B into the equations associated to the calculated fields in the form B as usual because it is a field in the same form.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Value Form’ is closed to new replies.