Appian StepbyStep 4 (Interfaces 101)
Appian StepbyStep 4 (Interfaces 101)
Appian StepbyStep 4 (Interfaces 101)
Exercise to Accompany
Interfaces 101: Build Forms and Other Interfaces
Save Often 2
Additional Resources 3
This document was created by Appian Corporation, 7950 Jones Branch Dr, Tysons, Virginia 22102.
Copyright 2021 by Appian Corporation. All rights reserved. Information in this document is subject
to change. No part of this document may be reproduced or transmitted in any form by any means,
without prior written permission of Appian Corporation. For more information on obtaining
permission for reprints or excerpts, contact Appian Training at [email protected].
To understand specific Appian concepts and features, we recommend that you first view our
online courses (access our curriculum at academy.appian.com), and then complete the
associated exercises before moving to the next course in the path.
If you already have access to a practice environment, you will need a user account with either
System Administrator access, or an account for a Basic User who is a member of the
Designers and Process Model Creator groups. Request access from your site’s System
Administrator.
Save Often
Appian does not automatically save updates, so save your objects frequently.
Appian provides a plethora of training resources for novice Appian developers. The following
resources are particularly popular with our learners:
Academy Online - Appian’s online courses provide useful survey courses, step-by-step
tutorials, and some additional practice exercises. Explore these resources at your own pace.
Survey courses will help you with developing a better grasp of the range of topics you need to
learn about. Video and print tutorials will help you with getting the hands-on experience with
Appian.
Appian Documentation - Appian’s product documentation will provide you with the overview of
key Appian features, newest release information, additional tutorials, and helpful patterns and
recipes to implement in your app.
Community Discussions for New Users - Join our community of experts to ask questions and
find answers from past discussions.
In this exercise, we will create a form for adding new vehicles to the fleet. We will create the
form using the Create from Data Type template. This helpful template will allow us to quickly
create a form that can be used for 1) entering new vehicle information, and 2) displaying the
read-only vehicle information back to the business user. Follow the steps below to create and
configure this form.
2. Retain the default Create from scratch option. Name the Interface
VFM_AddVehicleForm, and add a description: “An interface for adding vehicles to the
fleet.” Select the VFM Interfaces folder in the Save In field, and click Create.
3. When the Interface Designer opens, you will see a number of templates on the right.
Scroll down to the Builders group of templates, and select the Create from Data
Type option:
2. Click the form title Vehicle, and rename the form to Add Vehicle to Fleet.
if(
ri!vehicle.lastUpdated>=today() + 1,
null
4. Test that the validation works correctly by entering future and past dates into the Last
Updated field.
1. Let’s configure the visibility of the Category text field first. We want this field to display
as text when the form is read-only, and we want it to display as a dropdown field when
the form is editable.
● Select the Category text field. In the Component Configuration, scroll down to
Visibility, and select Only show when… Click Edit Condition.
● In the Visibility dialog box, type: ri!readOnly = true(). Note that the Category
field is then hidden from the live view. To see this field, you will need to update
● Scroll down to Choice Values, and click Edit as Expression. Delete the
existing options, and type cons!VFM_VEHICLE_CATEGORIES. Click OK.
● Scroll down to Selected Value. Use the dropdown menus to update the input to
ri!vehicle.category. Do the same for the Save Selection To field.
● Scroll down to Visibility options. Select Only show when…, and then click
Edit Condition to make this field visible only when or ri!readOnly=false or
ri!readOnly=null. Use this expression:
or(
isnull(ri!readOnly),
ri!readOnly=false()
Configure this field using either null or false() to ensure the field displays. If
you change the value to true() - meaning that the form is only displaying the
information - the Category dropdown field should disappear.
Let’s make the Vehicle Condition field required for our users if the vehicle has mileage above
500 miles. Follow the steps below to accomplish this:
1. Click to select the Vehicle Condition field, and convert it from a Text field to a
Paragraph field. To do so, click the Convert button in the Component Configuration
heading, and select Convert to Paragraph:
2. Make sure that the field Vehicle Condition is still selected, and in the Component
Configuration scroll to the Required setting. Make sure that Required is checked, and
then click Edit as Expression right next to it. We will require our business users
to provide an explanation if the vehicle mileage is higher than 500 miles. To do so, type
ri!vehicle.mileage > 500 into the Expression Editor.
3. Type 600 into the Mileage field to test our conditional requirement. You will notice the
asterisk appear right next to Vehicle Condition.
1. Click to select the Submit button. In the Component Configuration, click the
2. We will add an expression that will check that we have the Last Updated date, and then
will use the expression rule to calculate the date of the next maintenance. Type the
following expression into the Expression Editor:
if(
isnull(ri!vehicle.lastUpdated), "",
rule!VFM_CalculateNextServiceDate(
ri!vehicle.category,
ri!vehicle.lastUpdated
))
When working with expressions, make sure that you use the tips provided in the
Documentation Wizard and rely on the Autocomplete Feature for suggestions. For
example, after you type rule!, type the app prefix VFM next. You will see the list of
auto-suggested expressions. After typing ri!, notice that variables are also suggested to
you.
3. Next, using the dropdown selection update the Save Value To field to
ri!vehicle.nextServiceDate.
4. Similarly to how we configured the Submit button to auto-save the Next Service
Date, let’s do the same for the lastUpdated date value. To do so, click the
Expression Editor for Save Value To, and update the expression to the following:
a!save(ri!vehicle.lastUpdated,now())
Please note that curly braces {} are used to save an array of values, this is why our
expression uses them. Also note the a!save function: we use it because we update the
variable with the value of now. As you type this expression, watch the Documentation
Wizard and Autocomplete Feature to understand how expressions work.
In this chapter, we will build the form for the supervisor to either approve or deny the addition
of a vehicle to the fleet. We will build this form by duplicating the Add Vehicle form, and then
adding the radio button field for the supervisor’s approval. At the end of this exercise, you will
have the form that will look as follows:
2. Select the Duplicate existing interface radio button, and start typing and then select
VFM_AddVehicleForm in the Interface to Duplicate field. Update Name to
VFM_SupervisorApproval, and add a brief description: “An interface allowing
supervisors to review and approve new vehicles.”
3. Make sure that the VFM Interfaces folder is selected in the Save In field, and click
Create:
5. In the Rule Inputs pane, click the plus sign to add a new rule input. Name it
approvalDecision, and select Boolean in the Type field. Click Create.
2. In the Component Configuration pane on the right, scroll down to Visibility, and
select the Always Show radio button.
3. To test the form, click the null value for the readOnly rule input. Select True under
Value, and click OK. Notice that the Submit button still displays.
2. From the Components palette, drag the Radio Buttons component and drop it into
the Box layout.
4. With the Radio Buttons component selected, scroll to the Choice Labels in the
Component Configuration pane. Click the Edit as Expression button, and replace
{"Option 1", "Option 2"} with {"Approve", "Deny"}.
Before you go …
Congratulations! You have completed the fourth Appian Step-by-Step exercise. Keep
in mind that you will need the objects created so far for your next set of exercises.
Up Next