NextScreen property

FormScreen.NextScreen — Screen

The screen that appears when the user moves to the next screen.

By determining what screen to show using a formula, you can do things like show a screen collecting supplemental information, or even show a warning screen, and make that decision based on data entered by the user.

If this property is not set, it returns the screen which naturally follows this screen (as set in Calcapp Creator).

Use the NextScreenAvailable property to determine if users should be allowed to move forward to the next screen.

Examples

IF(Result < 20, SuccessScreen, FailureScreen)IF(Result < 20; SuccessScreen; FailureScreen)

Shows the screen named SuccessScreen when the user moves to the next screen only if the value of the number field Result is less than 20. Otherwise, the screen FailureScreen is shown.

IF(AND((Field1:Field5).Valid), SuccessScreen, FailureScreen)IF(AND((Field1:Field5),Valid); SuccessScreen; FailureScreen)

Shows the screen SuccessScreen when the user moves to the next screen only if all fields in the range Field1:Field5Field1:Field5 are valid. Otherwise, the screen FailureScreen is shown. The range includes the two fields Field1 and Field50 and all fields that appear between them.

The formula (Field1:Field5).Valid(Field1:Field5),Valid returns a logical array with the same number of elements as there are fields in the Field1:Field5Field1:Field5 range, like this array: { TRUE, FALSE, TRUE, TRUE, FALSE }{ TRUE; FALSE; TRUE; TRUE; FALSE }. The AND function returns TRUE only if all elements of the array are TRUE.

IF(HasCouponCode, CouponCodeScreen, FinalScreen)IF(HasCouponCode; CouponCodeScreen; FinalScreen)

Shows the screen CouponCodeScreen when the user moves to the next screen only if the value of the switch field HasCouponCode is TRUE (indicating that the user has toggled it to its "on" position). Otherwise, the screen FinalScreen is shown.