Answered
Conditionally fill a form field
I'm looking for a way to automatically fill in a field (Field2) with the the value from another (Field1), if Field1 is between 5 and 10. Otherwise I want the user to enter a number in Field2.
I'm looking for a way to automatically fill in a field (Field2) with the the value from another (Field1), if Field1 is between 5 and 10. Otherwise I want the user to enter a number in Field2.
Add this code as the custom validation script of Field1:
if (event.value && Number(event.value)>=5 && Number(event.value)<=10) this.getField("Field2").value = event.value;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.