Title: andy8891's Replies | WordPress.org

---

# andy8891

  [  ](https://wordpress.org/support/users/andy8891/)

 *   [Profile](https://wordpress.org/support/users/andy8891/)
 *   [Topics Started](https://wordpress.org/support/users/andy8891/topics/)
 *   [Replies Created](https://wordpress.org/support/users/andy8891/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/andy8891/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/andy8891/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/andy8891/engagements/)
 *   [Favorites](https://wordpress.org/support/users/andy8891/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7 - Post Fields] Add values to mail tag](https://wordpress.org/support/topic/add-values-to-mail-tag/)
 *  Thread Starter [andy8891](https://wordpress.org/support/users/andy8891/)
 * (@andy8891)
 * [8 years ago](https://wordpress.org/support/topic/add-values-to-mail-tag/#post-10516592)
 * Thank you so much!!! It worked!
    At first, it gave me an error in Chrome inspection
   mode that it does not recognize ‘$’ sign. I replaced it with just ‘jQuery’ and
   it worked!
 * Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7 - Post Fields] Add values to mail tag](https://wordpress.org/support/topic/add-values-to-mail-tag/)
 *  Thread Starter [andy8891](https://wordpress.org/support/users/andy8891/)
 * (@andy8891)
 * [8 years ago](https://wordpress.org/support/topic/add-values-to-mail-tag/#post-10516312)
 * I have tried it this way, but it didn’t work.
 * This is the code that I have now:
 *     ```
       <!–– SCRIPT#2 Change of image on product selection on Step 3 ––>
       <script>
   
       var imagesArray = [
       	"http://demo.lavinaweb.com/wp-content/uploads/2018/07/Blank_Bottle.png", // represents val 0,
       	"http://demo.lavinaweb.com/wp-content/uploads/2018/07/1000x1000-Front-B12-min.jpg", // represents val 1,
       	"http://demo.lavinaweb.com/wp-content/uploads/2018/07/L-Arginine-Amazon-Image-DT-Labels-min.png", // represents val 2,
       	"http://demo.lavinaweb.com/wp-content/uploads/2018/07/Turmeric-Curcumin-Amazon-Image-DT-Labels.png" // represents val 3
       ];
   
       jQuery('#changeImage').change(function(){
         jQuery('#image')[0].src = imagesArray[this.value];
       });
   
       </script>
       ```
   
 * It has an array of images ( var imagesArray) each having a value from 0 to 3
   
   and a function that changes the product image on Step 3 based on the selection
   of CF 7 drop-down menu.
 * I couldn’t find other solution but to change drop-down value
    to ‘slug’ and then
   assign a number slugs to each project post. So that it compares number from array
   and slug value of CF7 dropdown menu.
 * It works OK like that, but I would rather like to see a title of the project 
   in final
    email and not slug number.

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