Contents
Where do I find calculations in Cognito form?
You can access fields/sections at the top level of the form by typing “Form.” inside calculations. After entering Form., you can choose which field in the main form you want to reference. Now, the final result will pull the data from the main form (Number 1) into a section (Number 2):
How many fractional digits can Cognito form support?
We currently only support displaying up to 2 fractional digits. i.e. Round (num, fracDigits) Returns a value representing the sign of the specified number. Returns -1, 0, or 1 which means the number is negative, 0, or positive, respectively.
How to calculate maximum number of children in Cognito?
For example, you could write the calculation = Math.Max (Adults, Children) to calculate the maximum of these two values. Here is a full list of supported math functions, which all return numbers:
How do you format a number in Cognito?
To do this, simply enter a formatted string into a calculation field. Format a number, without thousand separators, with the specified number of decimal places. Format a number with the minimum specified number of digits, padding positive numbers with leading zeros if necessary.
How does auto completion work in Cognito form?
Cognito supports auto-completion to show you the values that are appropriate to enter in the calculation, including field names, names of functions, etc. Similarly, you can type a “.” to access a field or function on a section or value.
Which is the default date in Cognito form?
For the default value for a Date field, you could either enter “1/1/2015” or enter “Today”. The first would always be the constant date you specified, whereas the second is a calculation that always represents the current date.
When do you use Cognito as a builder?
Cognito provides a builder for creating complex conditional calculations (those that evaluate to true or false), such as when you are controlling the visibility of a section or making a field conditionally required.
What do the Yes and no fields in Cognito mean?
Unlike Choice fields that are really just Text values, Yes/No fields represent actual Yes/No values, called Boolean values. Also, many of the calculation operations and functions return Yes/No values, so it is important to understand what you can do with these types of values within your calculations.
When to use an error indicator in Cognito?
Cognito also supports an error indicator to help you know when a calculation is not working and exactly where the calculation stopped working.