# Prefill form with different info from different buttons

**URL:** <https://forum.wixstudio.com/t/prefill-form-with-different-info-from-different-buttons/77789>\
**Category:** Ask the community\
**Tags:** wix-bookings, wix, question, wix-studio\
**Created:** [April 22, 2026, 4:18pm UTC](https://forum.wixstudio.com/t/prefill-form-with-different-info-from-different-buttons/77789 "2026-04-22T16:18:34Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Geoff\_Gross](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/geoff_gross/32/118731_2.png) [@Geoff\_Gross](https://forum.wixstudio.com/u/Geoff_Gross)\
**Post date:** [April 22, 2026, 9:04pm UTC](https://forum.wixstudio.com/t/prefill-form-with-different-info-from-different-buttons/77789/4 "2026-04-22T21:04:23Z")

</div>

> [@Track which dynamic page a new Wix Form was submitted from](https://forum.wixstudio.com/t/track-which-dynamic-page-a-new-wix-form-was-submitted-from/71326/1):
>
> Sometimes, you want to know which page a user submitted a form on - which can be especially useful for dynamic pages like a car listing or product detail. This tutorial walks you through how to add that data to your form submission. Setup Step 1: Add a Hidden Field Create a form with a hidden field, for example “Page Submitted” Give it a Field key (Found under the advanced tab). I

Noah, if you’ll indulge me a bit more, I’d appreciate it -

On my ‘weddings’ page, I’ve updated the button link to: [http://www.merlotembargo.com/quote?eventType=wedding](http://www.merlotembargo.com/quote?eventType=wedding)  
(Seems slightly safer to assign a page within wix rather than a URL, but I don’t see a way to attach that eventType parameter if I do it that way.)

I’ve pasted your code onto my quote page, and updated the parameters to match the elements on my page. (I think I’ve got them all, but I’m not a web guy at all, or coder of any sort, so bear with me. Also, it doesn’t work anyway, and as i note below, wix seems to have some issues with my parameters anyway.)

```javascript
});
$w.onReady(function () {
    $w("#dropdown1").onReady(() => {
        let itemObj = $w("#dropdown1").getCurrentItem();

        let currentPage = itemObj["eventType"];

        $w("#multiStepForm1").setFieldValues({
            page_submitted: currentPage
        });
    });
});

```

When I hover over the onReady in the second line, wix tells me this property does not exist on type "dropdown. Similar red error message when I hover over getCurrentItem. Do i need to declare these at the top of the code or something,

Please forgive my ignorance!  
TIA  
G

---

_[View the full topic](https://forum.wixstudio.com/t/prefill-form-with-different-info-from-different-buttons/77789)._
