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

    (@codepeople)

    Hi,

    In this case you should edit the plugin’s code like follow:

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

    2. Go to the snippet of code:

    $dexQuery(this).val($dexQuery(this).attr(“vt”));

    and modify it like follow:

    $dexQuery(this).val($dexQuery(this).attr(“vt”)+’£’+$dexQuery(this).val());

    Finally, in the notification mail, insert only the tag:

    <%fieldname1_value%>

    Another solution would be to use the choice’s text as: Medium £6

    That’s all.
    Best regards.

    Thread Starter WillBigGun

    (@willbiggun)

    We need it to be a numeric value so it will add the price if they select option medium.

    We tried this $dexQuery(this).val($dexQuery(this).attr(“vt”)+’£’+$dexQuery(this).val());

    And it added £ to all other fields on the form using select so this is not good

    Any suggestion?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    In this case, the other possible solution would be to enter the complete data in the texts of the choices, for example: Medium £6

    Best regards.

    Thread Starter WillBigGun

    (@willbiggun)

    But this will not add a value of £6 to a calculations field taking this option into account?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I think we are talking about two different questions:

    The tags with the format: <%fieldname1_value%>, are applied to the notification emails, but not to the equations, in the equation uses simply the fieldname1 as part of the equation’s code.

    If you enter as the text of the choice: “Medium £6”, but maintains the value of the choice as 6

    The text “Medium £6” will be send in the notification email if the choice is selected, but the number 6 would be used in the equation.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Dropdown select’ is closed to new replies.