6 - How to create fields - HPC
Prior to creating the calculator which will be used on the product's page, the fields that will be used by the visitor to calculate a final price must be created.
You can create two kinds of fields on HikaPrice Calculator:
- Input Fields: The visitors will use these kinds of fields to input values. For example, you can use these fields to request the visitor to input Height and Width
- Output Fields: The visitors will see the result in these kinds of fields. You don't need to create the output field "Price" because it's the default output field. For example, you can use the output field(s) to show the Weight calculated to the user by using Height and Width he previously entered.
To create a new field:
- Click on the "Fields" folder
- Click on "New Field", which will show you the screen where a new field can be created:
- Field Name: This is a read-only field. it's a unique identifier of your field which you can use inside your formulas as well.
- * Field Label: This is the label that the field should have. The field will be shown in the product's folder, named with this label.
- Short label: It's not mandatory, but you can write a short label for the field that will be shown in the cart. if empty the "Field Label" is used as default label.
- Description: You can write a description here to help you remember what the field does.
- * Field Mode: You can choose to create an input field or an output field
- * Field Type: Based on the type of field selected, the information placed by you can be validated. See the Field Types chapter for more info.
- Required: (only for Field Mode = "Input") If "Yes" the visitor is required to put a value in the field (Also "0" is considered an empty value).If not, the error message "Required Error Message" will be shown to the visitor. If "Required Error Message" is not set, then a default error message will be shown.
- Insert the information relative to the field type chosen. See the Field Types chapter for more info.
- Click on "Save"
The fields created should be useful for different calculators. A field can be used by more calculators, therefore creating the same fields multiple times, such as "height" and "width", is not necessary.
The "Search" field can be used to find a field with certain characteristics.
In the "Actions" column you can:
- Edit: Change the field options.
- Clone: Duplicate the field, this will let you create a new field with the same options.
- Delete: Delete the field. Please pay attention, because this action is not reversible.
- HPC Free and HPC Pro allow you to create unlimited fields.