Custom fields
Custom fields add your own information to JoomSMS receivers: a city, a customer number, a preferred language, a membership date. You can show them on the receiver form, on the subscription forms and on front-end pages, filter receivers by them when you send, and put them in a message with a tag.
Open Components > JoomSMS > Custom Fields (section Audience of the sidebar).
The standard fields
A new install has five fields: First Name, Last Name, Phone Number, Email and Birthday. You can rename them, hide them from a form or reorder them. Keep Phone Number: JoomSMS needs it to send.
Add a field
- Click New.
- Fill in the fields and click Save.
| Field | What it does |
|---|---|
| Label | The name shown on forms. |
| Column name | The database column created for the field. Leave it empty to build it from the label. It cannot be changed after the first save. |
| Field type | See the types below. |
| Published | Unpublished fields are not shown anywhere. |
| Required | The form refuses to save without a value. |
| Front-end Profile | Show the field on site forms, such as the subscription page and the front-end receiver form. |
| Back-end Profile | Show the field on the receiver form in the administrator. |
| Back-end users listing | Add a column for the field to the Receivers list. |
Field types
| Type | Use |
|---|---|
| Text | One line of text. |
| Textarea | Several lines. Set Columns and Rows. |
| Radio Button, Checkbox, Single Dropdown, Multiple Dropdown | A choice from a list. Add the choices under Values: each row has a Value (stored), a Title (shown) and Disabled. |
| Date | A date. Format sets how it is shown. |
| Birthday | A birth date. Meant for the birthday message type, which does not work in 6.5.7, see Automatic messages. |
| File upload | A file the receiver uploads. |
| Phone | A phone number with a country list. |
| Custom text | No input: a text shown on the form, entered in Custom text. |
Check the content
For text fields, Authorized content limits what can be typed: All, only numbers, only letters, an e-mail address or your own regular expression in My regular expression. Error message if invalid is shown when the value does not match. Custom Error Message is shown when a required field is empty.
Use a field in a message
With the JoomSMS Tag : JoomSMS User Informations plugin enabled, every field is available as a tag in the message editor under Insert Tag. See Tags.