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).
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