Caution: Note when upgrading AForms from v1 to v2.

Building Calculator

The biggest feature of AForms is that you can create an estimation calculator.
In this article, we will explain how to create an estimate calculator.

Perform these operations on the “Details” tab of the Form Builder.

Adding a fixed line to estimation

You can create a line that is automatically added to the estimation without prompting the customer for input.
To do so, add an “Auto Item” to the form.

NameIt becomes the item name of the detail line.
CategoryIf entered, it will be the category name of the detail line.
PriceThe unit price of the added line.
QuantityThis is the quantity of the added line.
In the initial state, only “Fixed to 1” can be selected. See below for how to allow other quantities.
Required LabelsThe label required to add a line to the estimation.
For details, refer to “Conditional (labeling logic)“.

Adding lines that customers can select

You can present choices and have the customer choose and add the selected items to the estimation line.
To do so, add “Selector Items” to the form and add multiple “Option”s within it. Then the choices will be displayed as a group.

First, add a “Selector Item” to the form.

ImageThis image represents the selector item.
NameThe name of the selector item.
When the selected option is added to the detail line, it becomes the category name of that line.
NoteYou can add a note near the name.
Notes can be written in HTML.
Multiple SelectionWhether to allow customers to choose multiple options.
QuantityThe quantity specified here is applied when the selected option is added to the estimation line.
In the initial state, only “Fixed to 1” can be selected. See below for how to allow other quantities.

Next, add “Option”s to the selector item.

ImageThis is an option’s image.
NameThe name of the option.
When this option is added to the estimation, it becomes the name of the detail line.
NoteYou can add a note near the name.
Notes can be written in HTML.
Normal PriceIt’s like the manufacturer’s suggested retail price for the selling price.
PriceThe price of the option.
When this option is added to the estimation, it becomes the unit price for the detail line.
LabelsThe label given when this option is selected.
For details, refer to “Conditionals (labeling logic)“.
Required LabelsThis is required labels for this option to be enabled.
If the option is invalid, the customer cannot select that.

Allowing customers to enter quantity

So far, the detail line’s quantity has been fixed to “1”.
If you add “quantity field” to the form, you can treat the numerical value entered by the user as the quantity in the detail line.

ImageAn image representing the quantity item.
NameThe name of the quantity item.
Allows FractionWhether customers are allowed to enter fractions when entering the quantity.
If the unit of quantity is “pieces”, it is nonsense to enter fractions, but if the unit is area or time, fractions may be required.
Initial ValueQuantity entered in the initial state.
UnitIf you want to display the unit next to the field for entering a numerical value, enter it.
Minimum ValueEnter if you want to set a minimum value.
An error will occur if the customer enters a value smaller than this.
Maximum ValueEnter if you want to set the maximum value.
An error occurs if the customer enters a value greater than this.
Note You can add a note near the name.
Notes can be written in HTML.
Required LabelsRequired labels for this quantity item to be enabled.
If disabled, the quantity item is not displayed.

The quantity entered in the quantity item can be used in other items such as Auto Item or Option. However, please put the quantity item used before (the upper part of the form) the item that uses quantity.

Once you have added the quantity item to the form, open the details of the item you want to use the quantity for. In the “Quantity” input field, you can select the quantity item added to the form.

Monitoring the estimated amount

Often you want to add a detail line only if the estimation meets certain conditions. For example, you can give a bonus only if the purchase price exceeds 1,000 USD.

AForms has a “Price Checker Item” that monitors the estimated amount.

EquationAn equation for comparing the estimated amount with the threshold value.
ThresholdBoundary value for comparing estimated amounts.
LabelsLabels given when an equation is satisfied.
For details, refer to “Conditionals (labeling logic)“.
0 1