# Forms V2 - setFieldValues for dropdown or single choice

**URL:** <https://forum.wixstudio.com/t/forms-v2-setfieldvalues-for-dropdown-or-single-choice/67416>\
**Category:** Ask the community\
**Tags:** wix-forms, question, code, wix\
**Created:** [January 13, 2025, 3:36pm UTC](https://forum.wixstudio.com/t/forms-v2-setfieldvalues-for-dropdown-or-single-choice/67416 "2025-01-13T15:36:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![koomkoom](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/koomkoom/32/22480_2.png) [@koomkoom](https://forum.wixstudio.com/u/koomkoom)\
**Post date:** [January 13, 2025, 3:36pm UTC](https://forum.wixstudio.com/t/forms-v2-setfieldvalues-for-dropdown-or-single-choice/67416/1 "2025-01-13T15:36:58Z")

</div>

**Question:**  
Hi, I am using a the new forms (v2). And I trying to inject value into a dropdown or a single choice element

**Product:**  
Wix Editor

**What are you trying to achieve:**  
I am collecting a local storage value that was set in a previous page.  
And trying to dynamically set the value for either a dropdown or a “single choice” element

**What have you already tried:**  
I was able to inject the value into a regular short input text box (it is different in Forms V2 - the new forms. but this works:

```javascript
import { local } from "wix-storage-frontend";

$w.onReady(function () {
   
    let ref = local.getItem("my-data");
    console.log("I got " + ref)
    $w("#myForm").setFieldValues({
        myField1: ref,
    });
});

```

This worked, but due to the “closed” environment of the new Forms - I couldn’t find how to populate a dropdown or a single option.  
BTW I do know the key of that drop down, I just don’t know how to access it.

Thanks  
Gidon
