# How do you prepopulate dropdown options in the form URL?

**URL:** <https://community.feathery.io/t/how-do-you-prepopulate-dropdown-options-in-the-form-url/642>\
**Category:** Support\
**Created:** [April 25, 2024, 4:20pm UTC](https://community.feathery.io/t/how-do-you-prepopulate-dropdown-options-in-the-form-url/642 "2024-04-25T16:20:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![annagraham](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@annagraham](https://community.feathery.io/u/annagraham)\
**Post date:** [April 25, 2024, 4:20pm UTC](https://community.feathery.io/t/how-do-you-prepopulate-dropdown-options-in-the-form-url/642/1 "2024-04-25T16:20:08Z")

</div>

What is the required syntax of a form URL to prepopulate dropdown options? Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![kailash](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@kailash](https://community.feathery.io/u/kailash)\
**Post date:** [April 25, 2024, 6:52pm UTC](https://community.feathery.io/t/how-do-you-prepopulate-dropdown-options-in-the-form-url/642/2 "2024-04-25T18:52:38Z")

</div>

Hello @annagraham ,Can you elaborate a bit more? Are you trying to populate the options using the values passed in as part of the URL? Like URL parameters?

If these values are fixed, you can edit the options of the dropdown input in the properties tab. If they are more dynamic, you can use the Logic section and add the options to the dropdown input dynamically.

---

<div class="post-metadata">

**Author:** ![annagraham](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@annagraham](https://community.feathery.io/u/annagraham)\
**Post date:** [May 1, 2024, 1:39pm UTC](https://community.feathery.io/t/how-do-you-prepopulate-dropdown-options-in-the-form-url/642/3 "2024-05-01T13:39:08Z")

</div>

Hi @kailash,

Thank you for your response. I would like to prepopulate the dropdown option using URL parameters; the URL will be updated automatically from a SQL database.

The goal is for the dropdown to have staff names which will update automatically when staffing changes. This means that the options do not have to be changed manually when there is a new staff member or a staff member leaves.

Hope that makes more sense.

---

<div class="post-metadata">

**Author:** ![peter](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.feathery.io/peter/32/7_2.png) [@peter](https://community.feathery.io/u/peter)\
**Post date:** [May 2, 2024, 7:09am UTC](https://community.feathery.io/t/how-do-you-prepopulate-dropdown-options-in-the-form-url/642/4 "2024-05-02T07:09:54Z")

</div>

Hey Anna, setting dynamic field options is possible with Feathery’s custom logic feature. Here’s an example that randomizes the order of options: [Randomize Field Option Order | Feathery Docs](https://docs.feathery.io/platform/build-forms/logic/advanced/examples/randomize-field-option-order#rule-logic)

Since custom logic is a business plan feature, we’re happy to provide you with sample code if you decide to upgrade

---

<div class="post-metadata">

**Author:** ![annagraham](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@annagraham](https://community.feathery.io/u/annagraham)\
**Post date:** [August 13, 2024, 8:16am UTC](https://community.feathery.io/t/how-do-you-prepopulate-dropdown-options-in-the-form-url/642/5 "2024-08-13T08:16:50Z")

</div>

Hi Peter,

Thank you. We do now have a business plan. Would you be able to provide me with the code to achieve the above use case?

Best wishes,

Anna
