Finalizing the App
Last updated
Was this helpful?
Last updated
Was this helpful?
You've created both the UI to collect user information and an AirData App Object to store the information in. Now, let's connect the two.
[block:embed] { "html": "<iframe class="embedly-embed" src="//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FVmge7oNY71E%3Ffeature%3Doembed&display_name=YouTube&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVmge7oNY71E&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FVmge7oNY71E%2Fhqdefault.jpg&key=f2aa6fc3595946d0afc3d76cbbd25dc3&type=text%2Fhtml&schema=youtube" width="854" height="480" scrolling="no" title="YouTube embed" frameborder="0" allow="autoplay; fullscreen" allowfullscreen="true">", "url": "https://www.youtube.com/watch?v=Vmge7oNY71E&feature=youtu.be", "title": "Building your first application: Connections (4/4)", "favicon": "https://www.youtube.com/s/desktop/8d3f0079/img/favicon.ico", "image": "https://i.ytimg.com/vi/Vmge7oNY71E/hqdefault.jpg", "provider": "youtube.com", "href": "https://www.youtube.com/watch?v=Vmge7oNY71E&feature=youtu.be" } [/block]
A has to be created from to send the data back to .
From Connections Builder, click on Data Flow and then on Create Blank to add a new Data Flow.
Once added, double click on it to rename it as "Insert Content".
In the Inspector section, add the Inputs that will enable you to pass the Values from the Form Inputs to the Data Flow and back to AirData. When all data types display, select the Text input and rename it to name
; select the Phone input and rename it to phone
and do the same with the other two fields.
Add a Data Requests > AirData Request operation by clicking on '+' the icon in the Stage.
Inside the AirData Request, choose from the dropdown the App Object (Contact) that will save the information and select INSERT as the Type of operation to perform since it allows adding an item into AirData. In Objects to insert or update, complete the Value column with the Input Variables corresponding to each Key
To test the Data Flow and make sure it is sending the information back to AirData, go to Run Results and click on Run. Then save the application and go to AirData Builder to check if the data was inserted.
Now that the Data Flow is working and sending data to AirData Builder, go back to Web Flows Builder to connect the operation to the UI. In Web Flows Builder, you can define the Action Chain to be run when the users click on “Submit” once they finish completing their Form. This Action Chain is triggered by the Airkit Event of a user clicking the button.
Click on the “Submit” button and go to the Actions tab in the Inspector.
Click on the '+' icon for the Actions menu to display and select Run Data Flow from the Data Options.
Pick the previously created Data Flow and complete the displayed Inputs with the Input Variables of the Web Page. They will be suggested as you type, and you can select them by pressiong Tab:
Save the app and it will be ready to be tested.
Once the app is all set, it can be tested in the App Preview.
Click on Preview at the right-hand corner of the Studio, which will open a new tab.
Click on the globe icon, which allows the app to be launched from the start.
Complete the fields and click on “Submit”.
As expected, it will take the user to the Thank You Web Page.
Finally, go back to AirData Builder and check if the entered information has been saved into AirData:
Now the application is ready to be published.
Actions are a broad category. They can be do everything from to to . There's also the Action, which makes it possible to create branching Action Chains, where different Actions are taken depending on whether or not certain conditions are met.
For more on how to created an Action Chain, see documentation on , which is where **Action Chains **are defined. For more on the different kinds of Actions that can be taken, see
In the context of the Airkit platform, Events refer to any catalyst that might trigger an . All Action Chains are associated with a particular Event. It is when – and only when – an Event is fired that its associated Action Chain is performed.
When we say that Events tell the platform "something happened," we are being deliberately vague. All kind of things might trigger Events. A user clicking a is an Event, as is the , as is updating a .
There are many different types of Airkit Events, including , one of which you've already created in the , and , including the 'Clicked' Event associated with all .
🚧 Phone Input Validation If a value entered into the Phone Input Web Control is not a valid phone number (as defined by the Airscript function), the phone input value will evaluate to NULL
.