Improved additional fields in offers
Published 21.07.2021 15:30 in New features
The available fields are not always sufficient for working with leads: name, phone, mail, address and comment. You can add any number of custom fields to the offer. These fields are located in the form under the comment. Previously, these fields were only text fields, but ... It is inconvenient to use simple text fields. Therefore, you can customize the specific type of field using special parameters.
Parameters are written in square brackets. Parameter values are specified with a colon.
[type:number]- sets the field type: number, date, datetime-local, email, password, tel.
[required]- makes the field required.
[max:200]- step, minimum and maximum values for a field of type number.
[placeholder:Your email]- the placeholder value for the field.
[default:100500]- specifies the default value for the field.
[select]- makes a drop-down list out of the text box. Be sure to include the available options.
[options:One|Two|3=Three]- specifies a list of options for the dropdown list. Options are separated by a pipe. To specify a value for an option other than its name, use the equal sign.
An interesting list of additional fields might look like this:
needpark Need parking [select] [options:Yes|No] color Prefered room color [select] [options:g=Green|b=Blue|w=White] arrive Date of arrival [type:date] rooms Number of rooms [type:number] [default:1] persons Number of guests [required] [min:1] [max:10]
These fields will be shown in the form for processing a lead from the operator and the form for manually sending leads from webmasters.