Finalizing the App
Last updated
Last updated
A Data Flow has to be created from Connections Builder to send the data back to AirData.
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.
Previewing the App
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”.
🚧 Phone Input Validation
If a value entered into the Phone Input Web Control is not a valid phone number (as defined by the ISPHONE Airscript function), the phone input value will evaluate to
NULL
.
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.