Skip to content
aeropage-round-dark
Aeropage Documentation
Actions Reference

icon picker
Send Data

Send data when a component is clicked using only hidden fields (without the need for any form inputs)


Add or Edit Records

This is very useful if you want to pass values that are available in the system as variables, custom variables or calculations in a single click.

Example : Voting buttons

A common use is in voting systems - to update a field with a new value automatically when the button is clicked.
Untitled.png

You can set the action to edit or add a new record when triggered.

Untitled 1.png

After choosing which record to edit, we send the value of our calculation action to the votes field.

Untitled 2.png

The votes field will be updated in the database, and the new value will appear on the interface.

Untitled 3.png

Update Collection / Cart

To send data to the users browser (a collection).

image.png

Select the collection you wish to update. For example, select "My Stripe Cart".

image.png

In the next screen (as shown in the second attachment), select the type of action you want to perform: add, edit, or delete.
Use the respective buttons to select the desired action:
Add: To add new data to the collection.
Edit: To modify existing data in the collection.
Delete: To remove data from the collection.

image.png

If the selected action is 'Add', proceed to choose which fields and their corresponding values to include in the new data (as shown in the third attachment).
Click the plus (+) button next to "Values" to open the "Choose Fields" pane.
Select the fields you want to include, such as Product ID, Product Price, Product Name, etc.
Input the corresponding values for each selected field.

image.png

After selecting the "Edit" action, you will need to specify which entry in the collection you want to update.
An additional field "Data ID" will appear. Select the ID of the data you wish to edit.
Similar to the 'Add' action, click the plus (+) button under "Values".
Select the fields you want to update from the "Choose Fields" list.
Enter the new values for each selected field.
Ensure that the "Data ID" matches the entry you intend to update.

image.png

After selecting the "Delete" action, you will only need to specify the "Data ID".
Enter or select the ID of the data you wish to delete from the collection.
There is no need to choose additional fields or values for deletion; specifying the correct "Data ID" is sufficient.

image.png

Fields in the collection data


Product ID
ID: productID
Type: Text
Name: Product ID
Description: The unique identifier for the product. This ID is used to reference the specific product within the collection and is essential for tracking and managing product data.
Product Price
ID: productPrice
Type: Number
Name: Product Price
Description: The price of the product. This field represents the cost of a single unit of the product and is crucial for calculating the total amount during checkout.
Product Name
ID: productName
Type: Text
Name: Product Name
Description: The name of the product. This field provides a human-readable identifier for the product, making it easier for customers to recognize and select items.
Product Description
ID: productDescription
Type: Text
Name: Product Description
Description: A detailed description of the product. This field offers additional information about the product, including features and benefits, to help customers make informed purchasing decisions.
Product Image
ID: productImage
Type: Image
Name: Product Image
Description: The image of the product. This visual representation helps customers identify the product and enhances the overall shopping experience by providing a clear picture of what they are buying.
Item Quantity
ID: itemQuantity
Type: Number
Name: Item Quantity
Description: The quantity of the item. This field indicates how many units of the product are being purchased and is essential for inventory management and calculating the total price.
Customer ID
ID: customerID
Type: Text
Name: Customer ID
Description: The unique identifier for the customer. This ID is used to track customer information and transactions, ensuring that each purchase is accurately associated with the correct customer.
Interval
ID: interval
Type: Text
Name: Interval
Description: The interval of the subscription (e.g., day, week, month, year). This field defines the frequency at which a subscription recurs, allowing for the setup of various subscription plans.
Interval Count
ID: intervalCount
Type: Number
Name: Interval Count
Description: The number of intervals between each subscription. This field specifies how many intervals pass before the subscription renews, enabling flexible subscription durations.

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.