
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Create the app
/ 25
Customize the contacts primary view
/ 25
Using forms in your app
/ 50
In this lab, you implement the user experience for your app using various UX components available in AppSheet.
In this lab, you learn to:
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long lab resources are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials that you use to sign in and access AppSheet for the duration of the lab.
To complete this lab, you need:
When ready, click Start Lab.
The Lab Details pane appears with the temporary credentials that you must use to sign in to Appsheet for this lab.
If you need to pay for the lab, a dialog opens for you to select your payment method.
Click Open AppSheet.
The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Arrange the tabs in separate windows, side-by-side.
Sign in with Google.
If necessary, copy the Username below and paste it into the Sign in dialog.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
Click Next.
Click I Understand to accept the terms.
Click Continue to accept Google AppSheet's policy and terms.
On the AppSheet consent page, click Allow. This allows AppSheet access to the Google Drive folders associated with your Google Cloud Skills Boost account.
You are now signed in to AppSheet.
If necessary, close the Tell us about you so we can make better recommendations dialog to view the AppSheet MyApps page.
The MyApps page is empty since you do not yet have any apps.
When working on your own or your company's app, you normally would incrementally build the app over a continuous project timeline.
Apps that you build are saved and accessible in the Prototype Apps section on the My Apps page until they are deployed and published.
In this task, create the app that was built in a previous lab, using a template.
In the lab environment on some occasions its possible that the app built in a previous lab is still listed in the Prototype Apps section. You cannot use this app to continue working on this lab since the underlying data is not available for use by the app.
The app must first be deleted before continuing with this lab.
If the Customer Contacts app is listed, click the 3-dots menu and select Delete to delete the app.
Click Ok to confirm the deletion.
To continue building the Customer Contacts app in this lab, you must first recreate the app from a template.
Click the link to copy the Customer Contacts app to your AppSheet account:
In the left menu, click the Copy app icon.
On the Copy App form, for App name, type Customer Contacts
and leave the remaining settings as their defaults.
Click Copy app.
Click Customize your app to go to the AppSheet editor.
Your app is set up with the original contacts and companies data sources, and you can now continue to build out the app's functionality.
Click Check my progress to verify the objective.
In this task, customize the contacts view in the app by changing its layout, and some of its display options.
It would be nice to display a photo of a person in the contacts view of the app, for any contact that has a photo stored on file.
Click on Switch to the legacy editor icon in the top bar.
Navigate to the UX > Views tab in the AppSheet editor.
Under Primary Views, click on the contacts
view to expand its configuration.
The view type is set to card.
Expand View Options if not already expanded.
The sort order is by the First Name column in the contacts table. Scroll to the Layout section. The list option is selected by default.
The layout controls how the different items on the card are laid out in the view.
Click Title goes here. The Column to show indicates the name of the column whose value is displayed as the title of the card.
In this case, verify that it is the First Name column from the contacts table.
Similarly, click Subtitle goes here.
Verify that the Column to show indicates the Phone column whose value is displayed as the subtitle on the card.
Click the airplane icon to set the photo column.
Notice that AppSheet could not identify a column in the contacts table that contains image data. This is because the Google sheet used by the table does not contain such a column.
Add a column to the contacts Google sheet to store the photo of a contact. To do this, navigate to the Data > Tables tab in the AppSheet editor.
Click contacts
to expand the table configuration.
Click View Source.
AppSheet opens the data source, the contacts Google sheet in a separate window or tab in the browser.
Add the new column header: Photo in column H of the contacts sheet.
This column will contain a publicly accessible URL to the photo image of the contact person.
Switch to the AppSheet editor in the other browser tab and navigate to the Data > Columns tab.
Expand the contacts table column configuration.
Since the photo column was added to the Google sheet, you need to let AppSheet know of the new column structure of the contacts table.
Click Regenerate Structure.
Click Regenerate to confirm.
AppSheet automatically infers the correct column type of Image for the new photo column.
You now have a place to store image URLs or image filenames in the table that is used by your app.
In this step, provide the app with access to the image files using publicly hosted URLs.
Open this link in a separate browser tab: Photos .
Copy the image URLs from the Photo column in the Photos sheet opened in the previous step and paste them in the corresponding rows with the matching ID values in the contacts sheet.
Update the Photo column with the URLs to the images.
Navigate back to the UX > Views tab and scroll to the Layout section of the contacts view configuration.
With the list layout selected, click the airplane icon.
For Column to show, select Photo from the drop-down list.
For Image shape, select the circle icon.
Click Save to save your changes to the app configuration.
AppSheet updates the app in the live preview to show the photos of the contacts whose images were updated in the Google sheet.
If the live app preview does not update automatically, you may need to sync the app by clicking on the sync icon.
Click Check my progress to verify the objective.
In this task, customize the companies view to use a different view type and layout.
In the AppSheet editor, navigate to UX > Views and select the companies
primary view to expand its configuration.
Change the View type to card by selecting it.
Scroll to the Layout section under View Options, and select photo.
Select the small airplane icon. For Column to show, select Business Address.
Select the large airplane icon. For Column to show, select Business Address.
Click Save.
The app now displays a map of the business address location for each company.
In the same form, scroll down and expand the Display options.
In the Icon search box, type company
, and select any of the icons from the icons search results list.
Click Save.
The companies view icon in the app's bottom navigation bar now displays the new icon.
The map view is a great way to display locations within your app. Depending on your needs you can display location data, drop pins, or provide directions with your app.
Location data points can come from addresses, XY (coordinates of a point) or LatLong (GPS) information.
You can also use either Google maps to display your mapped locations using addresses and LatLong information, or a custom image to map XY points.
In this task, use a Map view to display the business address location of companies on a map in the app.
Navigate to UX > Views in the AppSheet editor.
To add a new view in the Customer contacts app, click New View > Create a new view.
In the New View form, specify the following, and leave the remaining settings as their defaults:
Property |
Value (type or select) |
View name |
Business Addresses |
For this data |
companies |
View type |
map |
Position |
menu |
View options > Map column |
Business Address |
This view will map data from the Business Addresses column in the companies table.
The user will be able to access this view from the app's main menu.
In the same form, expand the Display options.
In the Icon search box, type map
, and select any of the map icons from the list.
For Display name, type Map Business Addresses
.
This will be the name displayed for this item in the main menu.
Click Save to save the new view.
To test and preview the new map view, in the live app preview click the app's main menu icon to display the menu.
Verify that the Map Business Addresses menu item is included on the main menu.
Select the Map Business Addresses menu item from the main menu to map all the business addresses from the companies table.
Select any of the pinned locations in the map. AppSheet automatically displays details about the company at that location.
Apps usually need input from the user at some point as the user interacts with the app. To collect user input, AppSheet supports the Form view type.
In this task, use a form view in the app to enable the user to enter product information in order to ship products to a company.
The form view must have a place to store the user entered data from the app. Before you create the view, you must create or use a table to store this information.
To add a table to your app, navigate to Data > Tables in the AppSheet editor, and click New Table.
In Add data form, select Google sheets.
In the file picker, select the shipTo
Google sheet from your drive folder and click Select. This sheet was automatically provisioned for the lab.
In the ShipTo dialog, click Add 1 table.
AppSheet adds the table to your app. You can now create and use views for this table in the app.
In the AppSheet editor, navigate to Data > Tables and expand the shipTo table configuration.
Click View Columns. AppSheet has automatically inferred the types of the columns from the sheet.
Column |
Type |
Description |
ID |
Text |
Unique ID of the table |
Product Name |
Name |
Name of the product being shipped |
Quantity |
Number |
Number of units of the product being shipped |
Date |
Date |
Current date of the request |
Status |
Text |
Status of the request |
Company |
Number |
ID of the company to which the product is being shipped |
In the column structure for the ID column scroll the properties and deselect the Show? and Search? properties.
The ID column was selected as the key for the table and is automatically populated with system generated unique values using the UNIQUEID()
expression in the INITIAL VALUE property.
As this column contains random system generated values, it can be hidden and made unsearchable for the app user.
Learn more about using keys in AppSheet.
Click the pencil icon to the left of the Company column to open the column property edit form.
The Company column refers to the company to which items are being shipped, so its type should be set to Ref.
In this form specify the following, and leave the remaining settings as their defaults:
Property |
Value |
Type |
Ref |
Source table |
companies |
Click Done to close the column property edit form.
The Status column should be populated from a fixed set of values and not contain free text entered by the user.
To change the type of the Status column, click the pencil icon to the left of the column.
In the column edit dialog, change the type to Enum.
Under Type Details, for Values, click Add and type New.
Repeat the previous step to add additional Status values: Cancel, Hold.
Click Done.
Click Save to save your changes.
It would be nice to also include a company's shipping information whenever the shipTo form is displayed in the app. Note that the Shipping Information column in the companies
table already stores this information.
You can use a virtual column in the shipTo table to implement this capability. A virtual column is not an actual column in the underlying sheet. Instead, it is automatically computed via an app formula expression.
In the shipTo table's columns configuration, click Add Virtual Column.
In the New Virtual Column dialog, for Column name, type Shipping Info
.
Click in the App formula box to open the Expression Assistant.
In the Expression Assistant dialog, for App Formula for column Shipping Info, type [Company].[Shipping Information]
.
The expression evaluates to the value of the Shipping Information column of the row in the companies table that is referenced by the company ID value in the Company column in the shipTo table.
Click Save in the Expression Assistant.
Click Done in the New Virtual Column dialog.
Click Save to save the configuration changes.
The virtual Shipping Info column will now automatically be used in the form view that you will create in the next task.
To create the shipTo form view, navigate to UX > Views in the AppSheet editor, and click Add Histogram View for shipTo.
In the New View form specify the following, and leave the remaining settings as their defaults:
Property |
Value (type or select) |
View name |
ShipTo |
For this data |
shipTo |
View type |
form |
Position |
next |
Under View Options, for Form style, select Side-by-side. This style lays out the input fields with their labels alongside the field's UI component.
Under View Options, for Finish view, select shipTo_Detail. This sets the view that the app will display after the user submits this form.
Scroll the form and expand the Display section.
For Icon, type ship
in the search box.
Select any one of the appropriate icons. This icon will be displayed in the center position of the app's bottom navigation bar.
Click Save to save your changes in the AppSheet editor.
Follow the steps below to preview and test the new form.
If the live app preview is currently displaying the ShipTo form, click Cancel in the app's bottom navigation bar.
You will test the user experience starting from the initial view in the app.
Make a note of the new ShipTo view icon on the app's bottom navigation bar.
Click companies in the app's bottom navigation bar.
Click the ShipTo icon to open the form.
In the form specify the following, and leave the remaining settings as their defaults:
Property |
Value |
Product Name |
Widget 1 |
Quantity |
2 |
Status |
New |
Company |
Any company from the list |
Notice that the app automatically displays the Shipping Info based on the selected company.
Click Save to submit the form and save the new shipping entry to the shipTo table.
As a final verification step, switch to your browser tab to view the shipTo Google sheet on drive.
Verify that the new shipping entry has been added to the sheet.
Click Check my progress to verify the objective.
In the final task of this lab, you customize your app's look and feel by implementing a few branding changes.
To change the app's theme and color, navigate to the UX > Brand in the AppSheet editor.
For theme, switch between the light and dark themes by clicking on each theme.
Select one of the themes that best suits your preference.
You can change the primary colors used for text, buttons and icons in the app by selecting one of the colors from the list of colors available, or create a custom color of your choice.
Select any one of the colors to customize the look of your app.
To change the app's logo, select one from the list.
To change the launch image of the app, select one from the list.
To change the background image of the app, select one from the list.
You can choose to display the app's logo and view names in the app's header, hide the app's menu and search buttons, and change the color style of the header and footer.
Click Show view name in header to enable this feature.
Click Show logo in header to enable this feature.
For style, select the full color style option.
Click Save to save your changes.
Preview your branding changes in the live app preview.
You have successfully implemented the user experience for your app using AppSheet.
In this lab you learned how to:
This self-paced lab is part of the Building No-Code AppSheet Apps quest. A quest is a series of related labs that form a learning path. Completing this quest earns you a badge to recognize your achievement. You can make your badge or badges public and link to them in your online resume or social media account. Enroll in Building No-Code AppSheet Apps quest or any quest that contains this lab and get immediate completion credit. See the Google Cloud Skills Boost catalog to see all available quests.
Continue your quest with Publish your AppSheet App.
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated September 27, 2024
Lab Last Tested September 27, 2024
Copyright 2025 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
此内容目前不可用
一旦可用,我们会通过电子邮件告知您
太好了!
一旦可用,我们会通过电子邮件告知您
One lab at a time
Confirm to end all existing labs and start this one