Title: Dropdown select
Last modified: August 22, 2016

---

# Dropdown select

 *  Resolved [WillBigGun](https://wordpress.org/support/users/willbiggun/)
 * (@willbiggun)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/dropdown-select/)
 * Hi there,
 * We need the dropdown select choice to display both the value and the value name(
   for example Medium £6)
    <%fieldname1_vt%> £<%fieldname1_value%>
 * but this does not work.
 * [https://wordpress.org/plugins/calculated-fields-form/](https://wordpress.org/plugins/calculated-fields-form/)

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/dropdown-select/#post-5670961)
 * 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](https://wordpress.org/support/users/willbiggun/)
 * (@willbiggun)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/dropdown-select/#post-5670969)
 * 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](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/dropdown-select/#post-5670973)
 * 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](https://wordpress.org/support/users/willbiggun/)
 * (@willbiggun)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/dropdown-select/#post-5671084)
 * But this will not add a value of £6 to a calculations field taking this option
   into account?
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/dropdown-select/#post-5671086)
 * 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.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/dropdown-select/#post-5671086)
 * Status: resolved