adxvcasas - How to set a default value for opti...
How to set a default value for optional values?
Hello, so I'm trying to set a default value for my schema, is this approach acceptable?
2 Replies
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
(note that this only works to set a default if you pass it
undefined
which is not typical for most form libraries)
you might end up needing:
Which transforms the literal empty string into the string "none", while passing through any other non-empty strings.