My FNZ Studio Version
The article you are currently reading is not compatible with your selected My Appway version.

Screen-Driven Model

Problem

In my solution, I have a process step that contains a list of parties. To edit the details of a party I use a separate screen with the End Screen template applied. The party form is submitted when the Done button in the header is clicked: clicking validates and saves the input, and brings the user back to the parent screen. In my current implementation, the user can only return to the parent screen if the form is valid — that is, if there are no validation errors. However, since users do not always have all the required information to hand, users need to be able to leave the screen in case it cannot be completed at that specific point in time.

How can I give users the freedom of leaving an incomplete screen?
How can I give users validation feedback, so they see what needs to be finished later?

Designing Flexible Navigation

For Appway 10 and higher, please check the Data Gathering to gather client data for business cases of any complexity.

Let's start with designing the solution to this problem: In case there are validation errors on the Party screen, we show a popup asking for confirmation before users leave the screen. When returning to the parent screen, the validation feedback is reflected on the according party. By passing a party's validation state from the detail screen to the parent screen, we provide validation feedback on an overview level.

Here's a quick demo of how that would work:

Let's now take a look at how validation feedback is used in the two screens.

End Screen: Inline Validation and Confirmation Popup

If the End Screen has validation errors, we show inline validation feedback marking the affected form fields. At this point, solutions usually block users from returning to the parent screen: all errors need to be corrected before continuing. However, by presenting a popup that prompts the user to either leave or stay on the page, we can provide both flexible navigation and guiding feedback.

Parent Screen: Validation Status on Entities

In the parent screen, validation feedback is shown if there are validation errors. For example, in an Activity Screen that contains a list of Microtask Entities, each Entity leads to an individual End Screen. Users see for each Entity whether there are validation issues.

Because Bruce went to the airport before remembering his date of birth, a red error is displayed, prevent progress until this info is provided

Severity of Invalid Entities

Invalid Entities on an Activity Screen might affect a solution’s process flow. Depending on the business logic defined for the given phase, invalid Entities either block the process flow, or allow users to proceed to the next step. Whether an invalid Entity is blocking or non-blocking is indicated by the severity level of the validation icon.

  • Blocking: The validation icon is shown as a red error. The invalid Entity is blocking progress, so the 'Next' button is disabled.
    The information that Bruce still needs to provide means the user cannot continue until it's provided.
  • Non-blocking: The validation icon is shown as a yellow warning. The validation status is not blocking progress, so the 'Next' button is enabled.
    The missing Bruce Weber information is no longer blocking so the user can continue

Implementing Flexible Navigation

Let’s move on to how to build flexible navigation between screens, and how to pass the validation state across screens.

The minimum requirements to implement this example are:

  • Appway Core version 7.2.4 or higher
  • Design System version 4.3.0 or higher
  • ScreenValidationAddOns extension

The solution consists of the following Business Objects:

  • ExampleProcess: Process with two Screen Tasks
  • Parties: Screen containing a list of Party Objects
  • PartyDetail: Screen containing a form of the selected Party
  • Party: Data Class that defines the properties of Party objects

Download the example implementation: FlexibleNavigation Package 1.1

Flexible Navigation: Process

Here's the Process:
Screenshot of a Process with two Screens, Parties and PartyDetail

The ExampleProcess contains three variables:

  • $action: The Process Action to move between the Screen Tasks
  • $parties: A collection of parties added to the Process
  • $selectedParty: The party selected when navigating from the overview to the detail screen

You need to:

  1. Create an empty instance of the Party Data Class and assign it to the $parties variable of the Process. This Indexed Collection variable stores the information of the created parties.

  2. Assign the $parties variable to the Parties Screen Task so the parties can be listed.

  3. Assign the $selectedParty variable to the Party Detail Screen Task, so the party can be edited.

Let’s move on to the two Screen Business Objects, PartyDetail and Parties, to see how they are configured.

Flexible Navigation: PartyDetail Screen

The PartyDetail Screen should display a popup that warns users of any validation issues and also asks for confirmation before letting users leave.

When the user clicks the Done button, the solution:

  • Stores the data
  • Sets the party’s validation state in the Valid attribute
  • If validation errors exist:
    • Shows error feedback in the form
    • Shows a popup that lets users either return to the parent screen, or close the popup and stay on the screen
  • If no validation errors exist:
    • Returns to the parent screen

Here's how to achieve this:

  1. Use the Design System’s End Screen Screen Template. This template allows you to display a popup, and to check and set the Valid attribute of the selected party.

  2. Assign the $party variable to the 'DesignSystem:EndScreen-template'.

    • This template uses the DesignSystem:MarkValid Script Function to check whether the party is valid, and to set the Valid attribute of the party.
    • This Valid attribute is also used to display the party's validation status on the parent screen.
  3. Configure the content of the 'DesignSystem:EndScreen-template' popup using the following string variables:

    • $validationMessage: Default is 'Some fields are missing or have errors.'
    • $validationInstructions: Default is 'Do you want to leave?'
    • $validationContinueLabel: Default is 'Continue Editing'
    • $validationLeaveLabel: Default is 'Leave'
  4. This article doesn't cover storing the data, but we are going to take a closer look at how setting the party's validation state, and returning to the parent screen, are configured.

    Add two Actions to the Done button that are triggered by the onclick event.

    A screenshot of the Screen Editor showing the Actions tab

    • Add a Script Action on the Process phase to set the validation state. Select the Ignore errors option so the subsequent Process Action is executed — even if validation fails.

      Add the following script:
      DesignSystem:MarkValid($party, NOT(ScreenValidationHasErrors()))

      This script sets the party's Valid attribute to false in case of validation errors.
      The script passes our object, the party, to the End Screen Template. If the object is not valid, the popup is shown.

    • Add a Process Action to allow users to return to the parent screen.

Flexible Navigation: Parties Screen

On the Parties Activity Screen, which uses Microtask Entities to list the Entities, the validation error feedback must be shown on each individual Entity.

Screenshot of the Screen Editor showing the Variable Assignments

The MicrotaskEntity Solution Component on the Screen should be configured as follows:

  1. Assign your Party Object to the $object variable of the Solution Component. This binding allows the Microtask Entity to evaluate the validation state.

    If the DesignSystem:Valid attribute of the Party Object is false, then the validation feedback is shown in the Entity. The label of the validation feedback is defined by the $validationMessage variable. The default text is 'Validation errors'.

  2. Invalid Entities block the Process flow: if there are validation errors, you need to dynamically disable the Next button to prevent users from proceeding to the subsequent process step.

    Use the Boolean variable $disableNext to store the validation state of the screen:

    • If the value of $disableNext is true, the Next button is disabled
    • If the value of $disableNext is false, the Next button is not affected

Conclusion

This article explained the concept and implementation of how to pass the validation status from a detail screen to its parent screen, and how to provide feedback on each screen.

This interaction pattern is used to provide users with flexible navigation in case of errors.

The Design System evolves thanks to your feedback. If you have feedback, please open a ticket here on community.appway.com using the project Appway – Platform – Design System.

Further Resources
• End Screen Screen Template
• Microtask Entity Solution Component

© 2026 Appway AG. All Rights Reserved