Title: Get Value from Hidden Input Field
Last modified: March 16, 2022

---

# Get Value from Hidden Input Field

 *  [patwik](https://wordpress.org/support/users/patwik/)
 * (@patwik)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/get-value-from-hidden-input-field/)
 * Greetings,
 * I am trying to get the value of a hidden field.
 *     ```
       [hidden Geotargetedly_Country__c id:geocountry class:geotargetly_country_name class:test-contact default:geotargetly_country_code]
       ```
   
 * Rendered HTML:
    `<input type="hidden" name="Geotargetedly_Country__c" value=""
   class="wpcf7-form-control wpcf7-hidden geotargetly_country_name test-contact"
   id="geocountry">United States</input>`
 * The hidden input field value is generated by GeoTargetly.
    [https://help.geotargetly.com/en/articles/1757814-javascript-integration](https://help.geotargetly.com/en/articles/1757814-javascript-integration)
   using a Class.
 * —
    The Problem is that on email the _[Geotargetedly\_Country\_\_c]_ is not getting
   the value ex. United States.
 * Currently the fix I am using is using JS to get the value and injct to the attribute-
   value.
 * I am confused with the default:get;
    [https://contactform7.com/getting-default-values-from-the-context/](https://contactform7.com/getting-default-values-from-the-context/)
    -  This topic was modified 4 years, 3 months ago by [patwik](https://wordpress.org/support/users/patwik/).

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/get-value-from-hidden-input-field/#post-15466704)
 * Where can we see the website in question?
 *  Thread Starter [patwik](https://wordpress.org/support/users/patwik/)
 * (@patwik)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/get-value-from-hidden-input-field/#post-15467200)
 * The website is
 * > [https://www.mydigitalmoney.com/cryptocurrency-investment-guide/](https://www.mydigitalmoney.com/cryptocurrency-investment-guide/)
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/get-value-from-hidden-input-field/#post-15467727)
 * > Non-US IP Address Detected
 * This appeared when I accessed the URL.
 *  Thread Starter [patwik](https://wordpress.org/support/users/patwik/)
 * (@patwik)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/get-value-from-hidden-input-field/#post-15478682)
 * Hi Miyoshi,
 * Sadly, we restrict outside US access, but if you have VPN you can check it out.
 * Currently the Salesforce integration is working which is the priority but the
   hidden input on CF7 Email template still not getting the values from the input
   field from the GeoTargetly.com but other hidden like UTMS are okay.

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

The topic ‘Get Value from Hidden Input Field’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [patwik](https://wordpress.org/support/users/patwik/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/get-value-from-hidden-input-field/#post-15478682)
 * Status: not resolved