# CMS Select Initial State

**URL:** <https://forum.finsweet.com/t/cms-select-initial-state/2191>\
**Category:** General\
**Created:** [November 21, 2023, 6:15am UTC](https://forum.finsweet.com/t/cms-select-initial-state/2191 "2023-11-21T06:15:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lenonguyen](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/lenonguyen/32/1249_2.png) [@lenonguyen](https://forum.finsweet.com/u/lenonguyen)\
**Post date:** [November 21, 2023, 6:15am UTC](https://forum.finsweet.com/t/cms-select-initial-state/2191/1 "2023-11-21T06:15:47Z")

</div>

Hi everyone. I’m using the 1 CMS as the data source for 3 different select elements. Is there a way I can specify different initial states for these 3 elements?

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [November 21, 2023, 12:47pm UTC](https://forum.finsweet.com/t/cms-select-initial-state/2191/2 "2023-11-21T12:47:29Z")

</div>

Hey @lenonguyen! Can you share the structure you are using? There might be a couple of ways to do this depending on the way it is setup.

---

<div class="post-metadata">

**Author:** ![lenonguyen](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/lenonguyen/32/1249_2.png) [@lenonguyen](https://forum.finsweet.com/u/lenonguyen)\
**Post date:** [November 24, 2023, 7:54am UTC](https://forum.finsweet.com/t/cms-select-initial-state/2191/3 "2023-11-24T07:54:46Z")

</div>

Hi Luis, unfortunately, I can’t share the project link. I’m using 3 instances of the same select element that needs to have different initial values.

I’ve solved this with some custom code, but interested to know if there’s any other solutions as well.

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [November 24, 2023, 11:04am UTC](https://forum.finsweet.com/t/cms-select-initial-state/2191/4 "2023-11-24T11:04:11Z")

</div>

Hey @lenonguyen! I believe custom code is the way to go in this case. Could you share it in case someone else needs the solution?

---

<div class="post-metadata">

**Author:** ![lenonguyen](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/lenonguyen/32/1249_2.png) [@lenonguyen](https://forum.finsweet.com/u/lenonguyen)\
**Post date:** [November 27, 2023, 5:11am UTC](https://forum.finsweet.com/t/cms-select-initial-state/2191/5 "2023-11-27T05:11:05Z")

</div>

Hi Luis, here is the code I use:

```auto
$(function(){
   $("#select-1").val("Custom Value 1").change()
   $("#select-2").val("Custom Value 2").change()
   $("#select-3").val("Custom Value 3").change()
});

```
