Extra Baggage Selection using Reactive Components
Overview
This tutorial requires installing the Avonni Flow Screen Components managed package on your Salesforce org.
To complete this tutorial successfully, you must enable the Reactive Screen Components Beta feature in Salesforce.
To opt in to the Beta you need to go to the Process Automation Settings page within Setup. Scroll down to the bottom and enable the Reactive Screens Beta.
If you did not enable this setting before, you need to create a new flow once it is activated.
The Extra Baggage Selection component use case, leveraging the Avonni Progress Indicator, Input Counter, and Metric components, provides a user-friendly interface for passengers to purchase additional baggage effortlessly. With an intuitive step-by-step process, passengers can select the desired traveler and specify the extra bags required, ensuring a seamless and efficient experience for managing travel needs.
So, let's get started!
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FxJONzu1HVk3xuXy8HJE8%252F2023-06-30_15-06-59%2520%281%29.gif%3Falt%3Dmedia%26token%3Df0aeec96-1cf6-4b4c-8d2d-75c1507bca3e&width=768&dpr=4&quality=100&sign=617a4309&sv=1)
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FNpXdEf7BTu3C9jdwUatk%252F2023-06-16_16-49-27.png%3Falt%3Dmedia%26token%3D3cf38a77-659c-4c34-9b05-f0fd9e8578b6&width=768&dpr=4&quality=100&sign=5511a6b9&sv=1)
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252F7ejPGLRtyhkiSfxkFstz%252F2023-06-16_16-49-46.png%3Falt%3Dmedia%26token%3Dfd59692c-0599-432d-9791-5b8576fe9118&width=768&dpr=4&quality=100&sign=5b6071db&sv=1)
Steps
1️⃣ Create the Screen Flow
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FjqXzL95aZJjbKquzJOMb%252F2023-06-30_11-55-38.png%3Falt%3Dmedia%26token%3D15134c7f-05f1-4a02-afe3-c5bfa193ebec&width=768&dpr=4&quality=100&sign=a2836f60&sv=1)
2️⃣ Add a screen element
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252F9voRHZIUSwSNc0nPmC6d%252F2023-06-30_11-56-17.png%3Falt%3Dmedia%26token%3D9dd35629-09c0-465c-98fc-fb19ce84d33d&width=768&dpr=4&quality=100&sign=188dc0e&sv=1)
3️⃣ Add the Avonni Header
Start by adding the Avonni Header at the top of your screen flow. This will give all the following components a uniform look and feel and improve the overall design and harmony of the Bagagge selection component. It's a small change that can make a big difference in your layout.
Attribute | Value |
---|---|
Title | EWR-Liberty Intl. to LAS-Harry Reid Intl. |
Is Joined | True |
Avatar Variant | Square |
Avatar Icon Name | custom:custom20 |
Avatar Size | Medium |
Avatar Position | Left |
Style Panel
Attribute | Value |
---|---|
Margin Bottom | Medium |
Background | #ffffff |
Avatar Icon Background Color | #fcc003 |
4️⃣ Add a section element
Adding the Section component to display the Avonni Image and Avonni Input Counter
Adding a ' Section ' element is important before incorporating components into our screen flow. This element is crucial because it allows us to create two distinct sections within our screen element. These separate sections will enable us to easily organize and drag the desired components into their respective places.
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FxJG21QCB7dFXFlyhZ5h5%252F2023-06-30_15-13-53.png%3Falt%3Dmedia%26token%3D77ae1188-81bb-49a4-85e4-bf3f1af81bea&width=768&dpr=4&quality=100&sign=50bbb3f6&sv=1)
5️⃣ Add a Text Element, Avonni Image and Avonni Input Counter
In this step, users are guided to select their baggage cost.
Initially, they are presented with a text component displaying the price per bag.
Adjacent to this, the Avonni Image component visually illustrates the type of baggage selected with a relevant image.
To finalize their selection, users use the Avonni Input Counter on the right, enabling them to input the quantity of baggage they wish to register within a set range. This step ensures users are well-informed and able to make accurate selections.
6️⃣ Add the Avonni Metric component
In this step, we're build the pricing information using the Avonni Metric component. The Avonni Metric is employed to display the calculated cost of the selected baggage dynamically. It derives the price based on the input counter selection, using a formula to update the cost instantly.
Avonni Metric configuration
Attribute | Value |
---|---|
Value | Formula Field value |
Secondary Value | Formula Field value |
To associate a formula for the value and secondary value, select "Mapped" on click on the formula you want to use as a value and secondary value
![](https://flow.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FxA0nroVTdkMzUqdtmmPR%252F2023-06-30_14-57-42%2520%281%29.gif%3Falt%3Dmedia%26token%3D0c6475f6-755b-493e-bd2d-fce4312c3672&width=768&dpr=4&quality=100&sign=f92d5a4a&sv=1)
7️⃣ Add buttons to validate the process
In this final step of building the baggage cost selection component, we integrate two Avonni Button components. These buttons facilitate user interaction, allowing them to confirm or cancel their baggage selection. For example, the 'confirm' button finalizes their input by going to the next screen, while the 'cancel' button allows users to discard their selection and restart the process if needed. This finalizes the intuitive and user-friendly design of the baggage cost selection component.
Last updated