# Dropdown doesn't load during sign-up process

**URL:** <https://forum.wixstudio.com/t/dropdown-doesnt-load-during-sign-up-process/52012>\
**Category:** Ask the community\
**Tags:** code\
**Created:** [August 29, 2023, 9:45pm UTC](https://forum.wixstudio.com/t/dropdown-doesnt-load-during-sign-up-process/52012 "2023-08-29T21:45:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaosh\_wiixrocket](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jaosh_wiixrocket/32/91183_2.png) [@jaosh\_wiixrocket](https://forum.wixstudio.com/u/jaosh_wiixrocket)\
**Post date:** [August 29, 2023, 9:45pm UTC](https://forum.wixstudio.com/t/dropdown-doesnt-load-during-sign-up-process/52012/1 "2023-08-29T21:45:25Z")

</div>

Annoying issue. Pls help with any suggestions. Created custom sign-up form which is pulling pricing plan data from backend and enabling a dropdown to display those results.

This is the website [https://www.tradewindsranchhi.com/](https://www.tradewindsranchhi.com/) if i go through the process where I click login. click sign-up, the dropdown loads properly with the details.

If i go through [Tradewinds Ranch PMA](https://www.tradewindsranchhi.com/account/my-account) , and click sign-up, the dropdown doesn’t load even if there are no errors in the console

Pls let me know what could be wrong!

---

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [August 29, 2023, 10:20pm UTC](https://forum.wixstudio.com/t/dropdown-doesnt-load-during-sign-up-process/52012/2 "2023-08-29T22:20:19Z")

</div>

I see the issue. That’s weird. Show us your code so that we can understand what’s happening behind the scenes.

---

<div class="post-metadata">

**Author:** ![jaosh\_wiixrocket](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jaosh_wiixrocket/32/91183_2.png) [@jaosh\_wiixrocket](https://forum.wixstudio.com/u/jaosh_wiixrocket)\
**Post date:** [August 31, 2023, 12:51am UTC](https://forum.wixstudio.com/t/dropdown-doesnt-load-during-sign-up-process/52012/3 "2023-08-31T00:51:40Z")

</div>

Hi @Pratham

Code is as below

```javascript
import { getAllPlans} from 'backend/pricingPlans.jsw'

$w.onReady(function () {

    getAllPlansForDropdown()
        .then((result) => {
            console.log(`result Flag is ${result}` );
        })

})

export async function getAllPlansForDropdown() {
    return getAllPlans()
        .then((result) => {
            console.log(result);

            console.log(result[0].description);
            let count = result.length;
            console.log(count);

            let opts = [];
            //w('#membershipDropdownInput').options = opts;

            for (let i = 0; i < count; i++) {

                opts.push({ "label": result[i].description, "value": result[i]._id });
            }
            console.log(opts);
            $w("#membershipDropdownInput").options = opts;
            $w('#membershipDropdownInput').enable();
            $w('#membershipDropdownInput').placeholder = "Choose your membership";
            return true

        })
        .catch((err) => {
            console.log(err);
            return false
        });

}

//backend

export function getAllPlans() {

    return wixPricingPlansBackend.queryPublicPlans()
        .find()
        .then((result) => {
            console.log(result);
            return result.items
        })
        .catch((error) => {
            console.error(error);
        });
}

```

Console log for opts is showing all the values. but the dropdown just doesn’t load when the flow goes through /account/my-account

---

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [August 31, 2023, 8:16am UTC](https://forum.wixstudio.com/t/dropdown-doesnt-load-during-sign-up-process/52012/4 "2023-08-31T08:16:32Z")

</div>

One alternative that I’d like to suggest is that you try using `async await` and see if that’s working for you. Here’s a detailed video by The Wix Wiz showing how you can fetch and display your Pricing Plans using this method.

The plans in this case have been fetched by querying the Plans Data collection like you do with any other collection, instead of using the premade function, i.e. `wixPricingPlansBackend.queryPublicPlans()`.

[![](https://us1.discourse-cdn.com/wix/original/3X/d/e/de4d1f43cab3a1dc2f05ef418d853d751930fe32.jpeg "How To Customize Wix Pricing Plans for Subscriptions, Membership Fees, Offline Payments | Velo API") ](https://www.youtube.com/watch?v=zprDVsR7Lec)

Do remember to create a backup of your current code before overwriting it. If it still does not help, I’d recommend you get in touch with [Wix Support](https://www.wix.com/contact).
