You are on page 1of 5

CREATE A FORM SKILLS PRACTICE SOLUTIONS

In this exercise, you will create an interface for a form to collect details from an end user for
a new vehicle to add to the fleet.

Use the Interface Designer to create a form that collects vehicle details from an end user.
The interface should adhere to the following guidelines:

1. Create a form using the Interface Designer (VFM_AddVehicleForm) by starting from


the ‘Form’ template. The form template should be modified to collect the following
information:
a. Vehicle Category (dropdown field) - the choice labels and values for user
selection should come from the constant created in the Constants and
Expressions Skills Practice
b. Make (text field)
c. Model (text field)
d. Vehicle License Plate (text field) - add a validation on this field to validate that
the plate number has only 7 characters
e. Mileage (integer field) - add a validation that you can only add cars with fewer
than 200,000 miles
f. Vehicle Condition (paragraph field) - Let users enter in notes about what
condition the vehicle is in. ​STRETCH GOAL​: Make this field only required
when the mileage is over 100,000 miles.
2. Create a rule input for your vehicle CDT and save each display value and saveInto
into the corresponding field in your CDT rule input.
3. All form fields should be marked as required.
4. Use two columns.

   
CREATE A FORM: 
To create a form, select “New” then select “Interface” in the Application Designer. You may
also need to create a new folder to store your interfaces.

   
CONFIGURING DROPDOWNS:
Your dropdown configuration for category should look something like this:

   
CONDITIONALLY MAKE FIELDS REQUIRED: 
To conditionally make the field required, go to the required field in the paragraph component
and edit it as an expression (when you hover your mouse over required, an expression
editor symbol will appear). Enter the following expression:

   
COMPLETED INTERFACE: 
Your completed interface should look something like the one below.

You might also like