# Customizer control pages dropdown

**URL:** <https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348>\
**Category:** General\
**Created:** [September 15, 2019, 12:18am UTC](https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348 "2019-09-15T00:18:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Bob](https://forum.pinegrow.com/u/Bob)\
**Post date:** [September 15, 2019, 12:18am UTC](https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348/1 "2019-09-15T00:18:29Z")

</div>

Hi All,  
Grt to be here and using Pinegrow!  
I am developing a Wordpress theme using Pinegrow.  
In the Customizer, I would like to add a control where the user can select any existing page URL from a dropdown list.  
I know that this is possible in Wordpress but can we do it with Pinegrow is my Q?

- Thanks from Bob.

---

<div class="post-metadata">

**Author:** ![HoWin](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@HoWin](https://forum.pinegrow.com/u/HoWin)\
**Post date:** [September 20, 2021, 3:52am UTC](https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348/2 "2021-09-20T03:52:10Z")

</div>

Hi guys

I have the same question: I would need an customizer control for a dropdown field. I need this dropdown-field for different events, depending on which event is going on at the moment.

Thanks for your help  
Horst

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [September 20, 2021, 9:57am UTC](https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348/3 "2021-09-20T09:57:18Z")

</div>

Hi @HoWin,  
Can you clarify this a little, please? Specifically:

1. What will be displayed on the page? A single value selected in the customizer select field?
2. Where are the values for the select fields coming from?  
Thanks,  
Bob

---

<div class="post-metadata">

**Author:** ![HoWin](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@HoWin](https://forum.pinegrow.com/u/HoWin)\
**Post date:** [September 20, 2021, 11:55am UTC](https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348/4 "2021-09-20T11:55:47Z")

</div>

Hi @RobM

I have a select field with options, and I would like to change the amount of entries and the content of these options.

Example:

```auto
<select>
  <option>Content 1</option>
  <option>Content 2</option>
  <option>Conten 3</option>
</select>

```

Is this possible?

Thanks,  
Horst

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [September 20, 2021, 12:33pm UTC](https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348/5 "2021-09-20T12:33:27Z")

</div>

Hi @HoWin,  
I’m still confused. Do you want a select field in the customizer, or do you want to change the content of a select field on the page?  
Bob

---

<div class="post-metadata">

**Author:** ![HoWin](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@HoWin](https://forum.pinegrow.com/u/HoWin)\
**Post date:** [September 20, 2021, 1:20pm UTC](https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348/6 "2021-09-20T13:20:10Z")

</div>

@RobM: I want to change the content of a select field on the page (and also the number of entries).

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![HoWin](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@HoWin](https://forum.pinegrow.com/u/HoWin)\
**Post date:** [September 28, 2021, 5:02am UTC](https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348/7 "2021-09-28T05:02:41Z")

</div>

Hi @RobM

Sorry to ask you again, but do you think that this can be done with a customizer field? It would be nice, but if not it’s also no big disaster. Then I have to modify the template every time I want to modify the content of the select (dropdown) field.

Horst

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [September 28, 2021, 9:46am UTC](https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348/8 "2021-09-28T09:46:01Z")

</div>

Hi @HoWin,  
Sorry, this one slipped through my fingers, so to speak.  
This is going to take a bit of PHP to accomplish. I would start with adding a select field on the page. Then add a customizer control action to that field. The setting type would be option and the control type would be custom. Next, you would need to create the callback in your inc-\>custom.php file. (This is actually where you should have created your new mailer function.) That function is going to have to be able to convert your customizer input to a set of select options and replace the current content on the field. This is a bit beyond what I’m able to help with quickly, but I can give you a couple of references:  
[The WordPress Customizer - A Developers Guide (Part 1) - Maddison Designs](https://maddisondesigns.com/2017/05/the-wordpress-customizer-a-developers-guide-part-1),  
[GitHub - maddisondesigns/customizer-custom-controls: WordPress Customizer Custom Controls](https://github.com/maddisondesigns/customizer-custom-controls)  
Good Luck!  
Bob

---

<div class="post-metadata">

**Author:** ![HoWin](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@HoWin](https://forum.pinegrow.com/u/HoWin)\
**Post date:** [September 29, 2021, 7:02am UTC](https://forum.pinegrow.com/t/customizer-control-pages-dropdown/3348/9 "2021-09-29T07:02:45Z")

</div>

Hi @RobM  
Thanks for your reply and those two links. I will now dive deeper into this matter 🙂

May I ask you one more favor?  
You mean I should use custom.php for my modification to the mailer function. I asked google how to do this but couldn’t find the right answer. My question is: can I use custom.php to replace the whole wp\_simple\_form\_mailer.php with an other custom page?

Your help is really great and very professional. I’m very happy with it. Thx

Horst
