• Resolved Janet

    (@janethorie)


    Hello,

    For my case use, I will have two (2) CFF Calculators working side by side. Why? The reason is for the side-by-side is for comparison purposes.

    Question: Is it possible for these two (2) CFF Calculators to talk to each other and share “form controls” so if data is entered into Calculator #1 into two separate fields, this same data could then be set up to populate into Calculator #2 into a single pre-designated field?

    Why do I want to do this? To save on having to perform a manual calculation and thereby reduce human error.

    Of course, I understand if such a function were possible (ie to share data across CFF calculators), it would likely be distributed with the Developer and Platinum versions.

    Looking forward to your reply.
    Many thanks,

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

    (@codepeople)

    Hello @janethorie,

    If you want pre-fill the fields in the form B with the values of fields in the form A after be submitted. For example, to pre-populate the fieldname4 in the form B with the values of fields: fieldname1 and fieldname2 submitted by the form A but concatenated, the solution would be as follows:

    – Creates a new page, and enter its URL into the “Thank you page” attribute in the settings of the Form A

    – Into this page insert the shortcode for the form B, and the shortcode for results, to define the default values of form B fields. In this example:

    
    [CP_CALCULATED_FIELDS_RESULT]
    <script>
    cpcff_default = { 1 : {} };
    cpcff_default[1][ 'fieldname4' ] = '<%fieldname1_value%>'+'<%fieldname2_value%>';
    </script>
    [/CP_CALCULATED_FIELDS_RESULT]
    

    and that’s all.

    More information in the following links:

    https://cff.dwbooster.com/documentation#populate-form
    https://cff.dwbooster.com/documentation#populate-form-b-with-a

    Best regards.

    Thread Starter Janet

    (@janethorie)

    Thank you once again for your very quick reply.
    Best

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is It Possible for a CFF Calculator To Work With Another CFF Calculator’ is closed to new replies.