The rule editor allows you to add navigation buttons to your panel layouts, such as Horizontal Tabs, Vertical Tabs, Accordions, or Wizard. These buttons enhance the user experience by simplifying transitions among different panels in a form, shifting focus to the selected panel.

Imagine you are interacting with the profile settings section of an application, where navigation is facilitated by buttons rather than tabs. Upon entering the profile settings from the main dashboard, you encounter a series of panels dedicated to different aspects of their profile: Personal Information, Account Security, and Notification Preferences.

Each panel contains relevant fields and options for updating specific information. Navigation buttons, such as Next and Back, are prominently placed allow you to move between these panels. Click Next to advance the user to the Account Security panel and click Back to return to the Personal Information panel. This method of navigation ensures a seamless transition between sections without losing context, providing a smooth and intuitive user experience. The use of navigation buttons simplifies the process of managing profile settings, making the interaction more organized and user-friendly.

You can use the Navigate among the panels rule to create navigation rules for buttons that allow switching between different panels. Select the Shift focus to the next item attribute to move the focus to the next panel in the layout.

Next panel rule

When the Next button is clicked, focus moves to the subsequent panel in the layout.

Navigate in panel using Next button

Similarly, you can create a rule for the Previous button to shift focus to the preceding panel.

Previous panel rule

Streamline complex calculations in repeatable panels with functions

The rule editor allows you to use out-of-the-box functions like Sum, Min, Max, and Join directly on fields within repeatable panels. You can also pass a repeatable panel field value to the function that accepts number array, string array, boolean array etc. This unlocks powerful automation, allowing you to implement complex business logic without custom code.

Imagine a form with a repeatable panel, where each panel instance collects information about the declared value of assets.

Repeatable form

You can use the Sum function to automatically calculate the total assets value across all panels, eliminating the need for manual calculations and reducing the potential for errors.

Support for repeatable panel fields in OOTB functions

When you fill out a form, adding instances to declare the asset values, the Calculate Asset Value button computes the total sum of all declared asset values and displays the result in the total in assetvalue textbox.

Support for repeatable panel fields in OOTB functions

NOTE
In case the value of the repeatable panel field is passed to a function that does not accept an array, the field value from the last instance of the repeatable panel is passed to the function.

This is just one example! Explore the available functions to simplify workflows and enhance data accuracy within your forms.

Nested expressions

Rule editor lets you use multiple AND and OR operators to create nested rules. You can mix multiple AND and OR operators in the rules.

The following is an example of a nested rule that displays a message to the user about eligibility for a child’s custody when the required conditions are met.

Complex expression

You can also drag-and-drop conditions within a rule to edit it. Select and hover over the handle ( handle ) before a condition. Once the pointer turns into the hand symbol as shown below, drag and drop the condition anywhere within the rule. The rule structure changes.

Drag-and-drop

Date expression conditions

Rule editor lets you use date comparisons to create conditions.

The following is an example condition that displays a static text object if the mortgage on the house is already taken, which the user signifies by filling up the date field.

When the date of mortgage of the property as filled in by the user is in the past, the Adaptive Form displays a note about the income calculation. The following rule compares the date filled in by the user with the current date and if the date filled in by the user is earlier than the current date, the form displays the text message (named Income).

Date expression condition

When filled date is earlier than the current date, the form displays the text message (Income) as following:

Date expression condition met

Number comparison conditions

Rule editor lets you create conditions that compare two numbers.

Following is an example condition that displays a static text object if the number of months an applicant is staying at current address is less than 36.

Number comparison condition

When the user signifies living at the present residential address for less than 36 months, the form displays a notification that more proof of residence can be requested.

More proof requested

Invoke Form Data Model service

Consider a web service GetInterestRates that takes loan amount, tenure, and applicant’s credit score as input and returns a loan plan including EMI amount and rate of interest. You create a Form Data Model (FDM) using the web service as a data source. You add data model objects and a get service to the form model. The service appears in the Services tab of the form data model (FDM). Then, create an Adaptive Form that includes fields from data model objects to capture user inputs for loan amount, tenure, and credit score. Add a button that triggers the web service to fetch plan details. The output is populated in appropriate fields.

The following rule shows how you configure the Invoke service action to accomplish the example scenario.

Example-invoke-services

NOTE
If the input is of array type, the fields that support arrays are visible under the Output drop-down section.