Additional fields
Description
To create an additional field, go to the section: Module settings - Additional fields
Ability to create additional fields: 1. for a specific direction of exchange. 2. for a specific exchange type. 2. for a specific user group.
Available form types: Text - a regular text field. Textarea - large text field. Select - selecting values from a drop-down list. Radio - radio type switches are used in cases where you need to organize the choice of one of several options. Those. You can select only 1 value from the proposed ones. Checkbox - checkbox switches are usually used to select any parameters or capabilities independent from each other. Those. you can select several values from the proposed ones. Date - inserts the selected date.
Adding an additional field
Identifier - enter only Latin letters and numbers (a-z) (0-9) in lower case. It should not start with a number. Any special characters are prohibited.
Name - enter the name in Russian or in the language you use on the site.
Hint - a hint for filling out the field. Displayed next to the field to be filled in. It is not necessary to fill in.
Type - when you select which types this additional option will be displayed. field. Selecting multiple types - Hold down the Ctrl key on your keyboard and select the types you want. Select All if the field should be displayed for all types.

Payment systems - for which exchange directions this additional information will be displayed. field. To select multiple, hold down the Ctrl key on your keyboard and select the ones you want. Select All if the field should be displayed for all directions.

Group - for which groups this additional feature will be displayed. field. To select multiple groups, hold down the Ctrl key on your keyboard and select the groups you want. Select All if you want the field to appear for all groups.

Field type: Varchar - string field type. The length of the value (field) can be arbitrary (from 1 to 255). All spaces at the end of the line are removed. Int - numeric type. Used to display numbers. Float - a type of small floating point numbers. Used to display amounts. Text - string field type. Used to enter text. Select the field type depending on the field you are adding.
Field length - for Varchar and Int field types. It is not possible to enter text greater than the value entered in this field.
For Int it is not recommended to use a length greater than 6.
Form type: Text - regular text field Textarea - large text field. Select - selecting values from a drop-down list. Radio - radio type switches are used in cases where you need to organize the choice of one of several options. Ie. You can select only 1 value from the proposed ones. Checkbox - checkbox switches are usually used to select any parameters or capabilities independent from each other. Ie. you can select several values from the proposed ones. Date - calendar. Insert date. Select the form type depending on the field you are adding.
Default data - data that will be displayed by default in the input field. PHP global variables are supported: $_username (user login) $_truename (user's first and/or last name) $_email (user's e-mail) For form types: Text and Textarea you can enter any data. For form types: Select, Radio and Checkbox any of the values you entered in the Select field values.
Selecting values - for the Select, Radio and Checkbox form types. Each value with a new lines. Separate the meaning and name: | and end the line: *
Examples:
Title 1|Title 1*
Title 2|Title 2*
Title 3|Title 3*
Required number of characters to fill - 0 - not required to fill in A regular number other than zero means that you must enter at least the specified number of characters in this field Two numbers separated by a line, for example 2-10 - means that you need to enter from 2 to 10 characters in this field For the Checkbox type, the entered values limit the selection. For example: 2-3 means you need to select a minimum of 2 and a maximum of 3 values For Select and Radio types, any number other than 0 means that you must select
Checking fields - depending on the type of field and form. You can enter your own regular expressions. A drop-down list is available: No restrictions, Numbers only, Symbols only, Symbols and numbers only , E-mail, Date.
Additional - you can add CSS styles or JS scripts. If single quotes are used, then add a backslash before the quote: \
Field activity - Global setting. Selecting No will disable the field.
List of created fields

Output codes for additional fields are already inserted into the templates. No additional actions are required.
Last updated