Currently number and decimal types can only have numbers set as the default values, but it would be very helpful to be able to set variables as the default value since I am setting variables which will resolve as numbers. This would also allow for more complex Invisible Logic around counting and repeating.number() situations.
Thank you, @Jack Adamson! Regarding the Invisible Logic applications, would you ideally like to use repeating.number()
as a default value in later questions, or did you have something else in mind?
If I could set any and all numbers with default values, then I could do things like control the minimum and maximum number of repeating items, I could return different questions based on the number of answers in a repeating question, and I could also set default values for dollar amounts and other instances of using numbers and decimals.
One such example would be to ask the client if they are married and if their spouse will be our client as well. If they answer no, they are single, then I would only allow the repeating “Client Info” question to be answered one time, but if they said yes, then I could set the min and max to both be two, to make sure they provide all the necessary information, rather than relying on them to remember to fill it out correctly.
Thank you, @Jack Adamson. This is very helpful.