Input_text and user changes

I want to define a variable that a user can change, but I don’t want the value to be initially zero. For example, Month. Obviously you can’t have zero for a month, so I want to default it to 1. Using init_value will always overwrite any changes a user may have made.

I can’t be the only one to have this issue. What’s the workaround?

Why don’t you just not include the initial value and then after it is created fill in the number 1 at that point? from then on it will always be whatever the last value was.

Or if it only has set options like month numbers, use an input select. That will initialise with the first item on the list then (if you don’t set an initial_state) will restore whatever the last value was before a restart.