• Resolved Peggy

    (@peppytri)


    Hi! The confirmation email using <%INFO%> seems to be working differently than it used to work before I last updated this plugin. I last updated this plugin in August 2015 to Version 5.0.43.

    It used to output {field label}: {field value} for all the fields in my form. For my form I put numbers (qty) in the field text and a detailed description with qty in the field value. Example:
    Youth XS: Navy T-shirt 1
    Youth XS: Royal Blue T-shirt 2
    Youth XS: Zippered Hoodie 1

    Now it outputs {field label}: {field text} for all the fields in my form, and I can’t see my detailed description & qty anymore.
    Youth XS: 1
    Youth XS: 2
    Youth XS: 1

    How do I make it display the field label and field value when I use <%INFO%>, without having to code every single <%fieldname#_label%>: <%fieldname#_value%> on the form? Basically how do I make it revert back to the old behavior?

    Thanks for any help you can offer. My form:
    http://www.santiagohillspta.com/spiritwear/order

    https://wordpress.org/plugins/calculated-fields-form/

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

    (@codepeople)

    Hi,

    This behavior has not been modified in the plugin, the values sent in the notification emails are the text of the choices selected in the fields on form.

    I’ve visited your website, and the texts of choices in the “Youth XS” field are: 1,2,3,4, or 5, and not “Navy T-shirt 1”, “Royal Blue T-shirt 2”, or “Zippered Hoodie 1”

    Best regards.

    Thread Starter Peggy

    (@peppytri)

    Hi, thanks for your quick response. I’m certain the behavior has changed, because the form/email configuration has not changed, but the output from the email is different from the emails that were generated last year. Sample email output last year outputs the field value (not text):

    Youth XS:
    Youth S:
    Youth M:
    Youth L: Navy Siberian Tiger T-shirt 1
    Youth XL:
    Adult S:
    Adult M:
    Adult L:
    Adult XL:
    Adult XXL:
    Girls S:
    Girls M: Bella T-shirt 1
    Girls L:
    Ladies S: Bella T-shirt 1
    Ladies M:
    Ladies L: Bella T-shirt 1
    Ladies XL:
    Ladies XXL:
    Youth XS:

    Now it only shows “1” or whatever qty (text) next to the field label.

    You can see in my form has the drop-down field value that is different from the field text. That has never changed on my form.

    I use a workaround by outputting each individual field with a hard coded title in front of each group of sizes. If this is not considered a bug I would like to make a request change for future releases. I liked being able to use <%INFO%> to output the field label and field value (not field text).

    Plugin Author codepeople

    (@codepeople)

    Hi,

    If you want to send the values of the choices, instead their texts, please, follow the steps below:

    1. Open the “/wp-content/plugins/calculated-fields-form/cp_calculatedfieldsf_public_int.inc.php” file, with the text editor your choice.

    2. and deletes the snippet of code:

    $dexQuery("#cp_calculatedfieldsf_pform<?php echo $CP_CFF_global_form_count; ?>").find("select").children().each(function(){
    	if( typeof $dexQuery(this).attr("vt") != 'undefined' )
    		$dexQuery(this).val($dexQuery(this).attr("vt"));
    });
    $dexQuery("#cp_calculatedfieldsf_pform<?php echo $CP_CFF_global_form_count; ?>").find("input:checkbox,input:radio").each(function(){
    	if( typeof $dexQuery(this).attr("vt") != 'undefined' )
    		$dexQuery(this).val($dexQuery(this).attr("vt"));
    });

    Best regards.

    Thread Starter Peggy

    (@peppytri)

    Hi, thank you. Since it’s likely this code would get overwritten every time I upgrade the plugin I will keep the code as is an use the workaround. Thank you so much for your help.
    Peggy

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Email INFO outputs field label & text, not label & value’ is closed to new replies.