Title: Extend Plugin Function
Last modified: May 8, 2021

---

# Extend Plugin Function

 *  [webtranquility](https://wordpress.org/support/users/webtranquility/)
 * (@webtranquility)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/extend-plugin-function/)
 * > Hey morgyface,
    > > Just want to thank you very much because your solution 
   helped me a lot to solve a problem of connection between TablePress and ContactForm7.
   Thanks to your example and to some string concatenation in php I was able to 
   solve it, and now I am happy 🙂 > Regards, > Daniele
 * Hi. I am also working with TablePress and Contact form 7 on a website. I want
   to make a form with contact form 7 with about 3 different select options. The
   first select option is quite easy to create, but, I want to populate options 
   for the second select option from whichever answer they select on the first dropdown
   option on the form and then the answer on the second dropdown select option will
   determine what will populate the third select option, could you be kind enough
   to help on how to achieve this?
 * Here is an illustration of what I am trying to say:
 * First Select Option:
    Question: YOU ARE ON WHAT CONTINENT? Option 1: ASIA Option
   2: AFRICA Option 3: SOUTH AMERICA…..
 * Second Select Option:
    Question: YOU ARE IN WHAT COUNTRY? OPTIONS WILL BE POPULATED
   BASED ON CONTINENT THAT WAS SELECTED ABOVE; For example, I selected AFRICA above,
   then the select option for countries will be based on countries in Africa… e.
   g: Nigeria, Ghana… etc
 * Third Select Option:
    Question: YOU RESIDE IN WHAT STATE? OPTIONS WILL BE POPULATED
   BASED ON COUNTRY SELECTED IN SELECT OPTION 2 (It will list the states in the 
   country selected)

Viewing 1 replies (of 1 total)

 *  [Erik](https://wordpress.org/support/users/codekraft/)
 * (@codekraft)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/extend-plugin-function/#post-14416744)
 * hi [@webtranquility](https://wordpress.org/support/users/webtranquility/),
    what
   you want to do is possible, just create all the select and hide them, and show
   them only when the right value is selected. taking your example:
 * select1: what state do you live in?
    select:2 europe (hidden) select3: africa(
   hidden) select4: asia (hidden) …
 * on select 1 change, the select 3 become visible
 * —
 * Another way would be to have the select step 2 and step 3 empty and fill them
   only after the user has selected step 1
 * something like that to add the options to selects
 *     ```
       var el = document.createElement("option");
       el.textContent = "xyz";
       el.value = "123";
       select.appendChild(el);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Extend Plugin Function’ 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/)

## Tags

 * [Select options](https://wordpress.org/support/topic-tag/select-options/)

 * 1 reply
 * 2 participants
 * Last reply from: [Erik](https://wordpress.org/support/users/codekraft/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/extend-plugin-function/#post-14416744)
 * Status: not resolved