I have been searching for a solution to what I am trying to do in these discussions and some of them are close, but the code I have been trying to add/manipulate just doesnt seem to work quite right, so hopefully someone can help me. I am new to Javascript and have been trying to learn slowly, but i assume this is an easy solution for some. I have two dropdown menus, the first one the user is to select a value (lets say "1234"), the second dropdown is to display items that i want related to that value (lets say "1", "2", "3", "4") This is necessary for my form so users dont have to search for related values according to what they chose.

I have found a script that uses the setitem method, however the items are not keeping their selection. What i mean by that is that it will set the items correctly in the dropdown, but when i go to select, it keeps the first value.

I have this in the Custom Calculation Script in the Dropdown properties. I am wanting to say: If Dropdown 1 box equals M1400, then these are your choices for Dropdown box 3 ( Item 1, Item 2, Item 3) OR if Dropdown box 1 equals M1342, these are your choices for Dropdown box 3 (Item 4, Item 5, Item 6). Like i said, I am new to Scripting so I have been trying to research and piece things together before coming here. Cna you write me out a basic script that i should be using in this instance? Thanks so much for your reply/time.