Down below is an example of using this event. We will use an order items form, we will use ajax on the form to capture the unit price of the product and calculate the total price based on the quantity of products desired.
1. First, let's configure the product field to display the product name at the location of the ID.
We must access the application settings, and select the field in question (productid).
3. Finally, we must configure the display lookup, using the products table to find the product names.
5. We will use the sc_lookup macro (For more information click here) to search for this information in the database.
6. Next, we will create another ajax event (onChange), this time in the quantity field, to calculate the total value by informing the desired quantity.
7. Next, we can see the Ajax prcessing .