Question
Simple Java: if dropdown option x is selected, return y immediately
Looking for the best way to, essentially, replace a user's dropdown entry immediately to 10 if they select option: String, export value set to: 0. Dropdown field is fund1. There is a calculation script in a hidden field referencing fund1.
I've tried adding a condition to that calculation such as
if (fund1.value== 0) {fund1.value = 10} -> error: set not possible.