# Setting the value of an input

**URL:** https://discourse.julialang.org/t/setting-the-value-of-an-input/62248
**Category:** Pluto
**Created:** [June 2, 2021, 4:43am UTC](https://discourse.julialang.org/t/setting-the-value-of-an-input/62248 "2021-06-02T04:43:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![scotts](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@scotts](https://discourse.julialang.org/u/scotts)
#### Post date: [June 2, 2021, 4:43am UTC](https://discourse.julialang.org/t/setting-the-value-of-an-input/62248/1 "2021-06-02T04:43:21Z")

</div>

Ok, this seems like a really simple question but I’m stuck.

How do I set the value of PlutoUI select input programmatically, based on the value of another select input

So for example, I have inputs:

```julia
begin
Rots = ["WC","WFWC","WWC","WWO","WFWO","WWB"]

rot1 = @bind Rot1 Select(Rots)
rot2 = @bind Rot2 Select(Rots)	
rot3 = @bind Rot3 Select(Rots)
rot4 = @bind Rot4 Select(Rots)
rot5 = @bind Rot5 Select(Rots)
rot6 = @bind Rot6 Select(Rots)
rotall= @bind Rotall Select(vcat(Rots,"-"), default="-")
md"""
	Rot 1: $(rot1)
	Rot 2: $(rot2)
	Rot 3: $(rot3)
	Rot 4: $(rot4)
	Rot 5: $(rot5)
	Rot 6: $(rot6)
	Set All: $(rotall)"""
end

```

Now I just want to set the values of Rot1 - Rot6 to be equal to Rotall when Rotall is not “-”.

I would have thought something like the below would work…

```julia
if Rotall != "-"
rot1 = Rotall
rot2 = Rotall
rot3 = Rotall
rot4 = Rotall
rot5 = Rotall
rot6 = Rotall

	end

```

However this gives me a multiple definitions for rot1 error…

Is there a “set value” function for these input elements?
