Inspection Form Design
We will start by designing a simple form to perform Equipment Inspections. For this tutorial we will collect the following information:
- Date / Time of the inspection
- Equipment being inspected
- Condition of the equipment - Select from Good, Warning, Repair, Replace
- Comment - For Warning, Repair and Replace an additional comment will be accepted
- Picture - A picture is required to be added for Repair and Replace
- Name - Inspector’s Name to be selected from a list
- Signature - Signature of the Inspector
Form Design
Section titled “Form Design”- Login to Turbo Apps and click on Forms in the sidebar
- Click on the
Createbutton and chooseFormto display the Form Designer - From Layout, drag and drop
Columns- In Column Properties, confirm
Widthis 8 for each of the columns
- In Column Properties, confirm
- From Advanced, drag and drop
Date / Timecomponent into the first column- Check
Use Locale Settingsso that browser locale will be used for display - Click on Data and set
Default Datetomoment()to initialize it to current date and time - Click on Validation and select the
Requiredfield - Click on API and change API name to
inspectDateTime - Click on Save
- Check
- From Basic, drag and drop
Selectcomponent into the second column- Change
Labelto Equipment - Click on Data and add multiple equipments to the list. Under
Data Source Valuesenter Computer in label and tab, the value computer will be set automatically. Now click onAdd Anotherand similarly add the labels CPU, Mouse, Monitor, Keyboard and Headphones - Click on Validation and select the
Requiredfield - Click on API and confirm API name is
equipment - Click on Save
- Change
- From Basic, drag and drop
Radiocomponent into the second column below Equipment- Change
Labelto Condition - Check
Inline Viewso the radio buttons display horizontally - Click on Data and add multiple conditions to the list. Under
Valuesenter Good in label and tab, the value good will be set automatically. Now click onAdd Anotherand similarly add the labels Warning, Repair and Replace - Once all the values are added, remember to choose *Good as the
Default Value - Click on Validation and select the
Requiredfield - Click on API and confirm API name is
comment - Click on Save
- Change
- From Basic, drag and drop
Text Areacomponent below the columns so it takes up the full width- Change
Labelto Comment - Click on Validation and select the
Requiredfield - Click on API and confirm API name is
condition - Click on Conditional and under
Simple, set theComponent Should Displayto False, choose theForm Componentas Condition (condition) and lastly set value to Good. This is done as we do not want the Inspector to enter a comment if the equipment condition is Good - Click on Save
- Change
- From Layout, drag and drop
Columnsbelow theCommentfield- In Column Properties, click on
Add Columnto add a 3rd column - Change
Widthof the 2nd and 3rd column to 5 to make a total of width 16
- In Column Properties, click on
- From Turbo Premium, drag and drop
Filecomponent into the first column- Change
Labelto Equipment Image - Click on
**File**and setStorageto Base64. Also checkDisplay as Image,Upload Only,Enable Web Camera,Change Default Compressionand setCompression Sizeto 1 MB - Click on Validation and select the
Requiredfield - Click on API and confirm API name is
equipmentImage - Click on Logic as we are going to add logic to ensure that an image is required only if the condition is Repair or Replace. Set
Logic Nameto repair,Triggertype to Simple,Form Componentto Condition (condition), and set theHas The Valueto repair. NowAdd an Action. SetAction Nameto repair-mandatory,Typeto Property,Component Propertyto Required andValueto True. What we have achieved is to set the Mandatory property for this file component to true if the condition is Repair. Now remember toSave ActionandSave Logic. - Similarly add another Logic and Action to check for condition value Replace.
- Click on Save
- Change
- From Basic, drag and drop
Selectcomponent into the second column- Change
Labelto Inspected By - Click on Data and add multiple equipments to the list. Under
Data Source Valuesenter Alex Johnson in label and enter the value 1 for value. Now click onAdd Anotherand similarly add the labels/values Brandon Clark as 2, Justin Taylor as 3, Kevin Anderson as 4 and Ryan Miller as 5 - Click on Validation and select the
Requiredfield - Click on API and confirm API name is
inspectedBy - Click on Save
- Change
- Finally from Advanced, drag and drop
Signatureinto the third column- Change
Labelto Sign - Uncheck
Click To Signas we want users to digitally sign their signatures and not just affix name - Click on Validation and select the
Requiredfield - Click on API and confirm API name is
signature - Click on Save
- Change
That’s it. We are now done with the Form design. Click on Save and enter the details:
- Icon - Click on the icon and select a suitable icon of choice (optional)
- Title - Inspection
- Description - Computer equipment inspection form
- Category - Choose
Defaultfor now
The newly minted form is now saved.
Preview the form and Publish it
Section titled “Preview the form and Publish it”Click on Preview to view how the form will look like on Desktop or Mobile. The DateTime field is prefilled with current date and time and the user can change if required. Notice that when the condition is good, the comment field is not visible. Also image is not required. When you choose Warning, Repair or Replace, the comment field now appears. And finally for Repair or Replace the Image is a mandatory field.
Once satisfied with the Preview, remember to go back to Form Design screen and click on the Publish button, enter a comment and publish it, else this form cannot be filled in by Inspectors.
Assign and use the form
Section titled “Assign and use the form”Once the form is published, navigate back to the Forms list. In the Computer Inspection row, click on the Assignments icon. choose a team or teams that you belong to and assign the form.
Login to Turbo Forms App
Section titled “Login to Turbo Forms App”Now login to the Turbo Forms App on web or mobile as the same user and click on the + button to create a new form to fill and choose the Computer Inspection form. You should now be able to fill in data, choose the user, take a picture and submit it.
Assignments
Section titled “Assignments”For working with the SAP Flow Development tutorial later, you will need to design a Notification Create Form. Here are the details for you to create:
Create Notification Form
Section titled “Create Notification Form”Add another form called Notification Create and add the following fields:
| Field Label | API Property Name | Type | Mandatory |
|---|---|---|---|
| Notification Type | notifType | Dropdown | Yes |
| Equipment Id | equipmentId | Textfield | Yes |
| Functional Location Id | funcLocaId | Textfield | Yes |
| Short Text | shortText | Textfield | Yes |
Topics Covered
Section titled “Topics Covered”- Designing a form with various components
- Adding columns layout to align the form as required
- Collecting signatures and pictures as part of the form
- Show or hide components based on values of other components
- Make a component mandatory if another component has specified values