I'm facing a similar situation (https://github.com/ciscoheat/sveltekit-superforms/issues/282) and I have a dropdown field that controls other inputs type string values that have their own default values, their own validators and constraints.
For example: I have a dropdown with 2 values: rectangle, circle.
When I enable square value from the dropdown, 2 other inputs type string appears on HTML: width and height. Width with default value of 10 and height with default value of 20, bot with min 5 and max 100.
If I choose circle from the dropdown, only 1 input appears on HTML: radius with the default value of 15, min 1 and max 100.
How can i solve this ?
I'm facing a similar situation (https://github.com/ciscoheat/sveltekit-superforms/issues/282) and I have a dropdown field that controls other inputs type string values that have their own default values, their own validators and constraints. For example: I have a dropdown with 2 values: rectangle, circle. When I enable square value from the dropdown, 2 other inputs type string appears on HTML: width and height. Width with default value of 10 and height with default value of 20, bot with min 5 and max 100. If I choose circle from the dropdown, only 1 input appears on HTML: radius with the default value of 15, min 1 and max 100. How can i solve this ?