Title: How to create Conditional Fields.
Last modified: March 7, 2022

---

# How to create Conditional Fields.

 *  Resolved [hartjies](https://wordpress.org/support/users/hartjies/)
 * (@hartjies)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-conditional-fields/)
 * Hi guys,
    I would like to create conditional fields, show a group, based on the
   city post results. I have tried the following but does not work. show [group-
   map-promo] if [map-123] equals “Johannesburg” Any suggestions?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhow-to-create-conditional-fields%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-conditional-fields/#post-15476523)
 * Are you using conditional fields for cf7 plugin?
 * If so you can make your conditional group display based on a hidden field value.
 * Use the js events fired by the Google map plugin to determine the city location
   and populate your hidden field with the value to trigger the conditional group
 *  Thread Starter [hartjies](https://wordpress.org/support/users/hartjies/)
 * (@hartjies)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-conditional-fields/#post-15481933)
 * Yes, I’m making use of conditional fields for cf7 plugin.
    Could you please provide
   an example on how I can trigger the conditional group.
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-conditional-fields/#post-15482106)
 * see [FAQ](https://wordpress.org/plugins/cf7-google-map/#faq) #11
    -  This reply was modified 4 years, 2 months ago by [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/).
 *  Thread Starter [hartjies](https://wordpress.org/support/users/hartjies/)
 * (@hartjies)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/how-to-create-conditional-fields/#post-15491560)
 * Thank you for your reply but unfortunatly I’m not sure how to do this.
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [4 years ago](https://wordpress.org/support/topic/how-to-create-conditional-fields/#post-15639948)
 * this is quite complex to achieve and as a general rule I don’t provide example
   codes beyond what is in the FAQ. You will need to hire someone who can do this
   for you.

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

The topic ‘How to create Conditional Fields.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cf7-google-map.svg)
 * [Contact Form 7 extension for Google Map fields](https://wordpress.org/plugins/cf7-google-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-google-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-google-map/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-google-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-google-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-google-map/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/how-to-create-conditional-fields/#post-15639948)
 * Status: resolved