Custom fields
Add your own questions to testimonials with Joomla custom fields, for example "Product bought", "City" or "Would you recommend us?". Custom fields appear in the administrator edit screen, in the submission form and on the site.
Create a field
- Open Custom Fields in the JoomTestimonials sidebar. The entry appears when the Joomla Fields component is enabled.
- Click New, enter a Title and choose a Type such as Text, List or Radio.
- Set Required if every visitor must fill it in.
- Click Save & Close.
Use Custom Field Groups to group fields. In the administrator each group gets its own tab in the edit screen.
The field's own permissions decide who may fill it in (Edit Custom Field Value). Allow it for Public if guests should fill in the field in the form.
On the site
In each layout's Item layout tab:
- Show Custom Fields shows or hides the field values on the testimonials.
- Custom Fields Position puts them Show Before Testimonial or Show After Testimonial.
Each field also has the usual Joomla display options, such as Label and Automatic Display.
Position in the form
In the submission form, custom fields appear after Your rating by default. To move a field after another field, add a class to the field's label:
- Edit the custom field and open the Options tab.
- In Label Class, enter one of the classes below as the first class.
- Click Save & Close and reload the form.
| Label class | The field moves after |
|---|---|
jt_after_name |
Your Name |
jt_after_email |
Your Email |
jt_after_avatar |
Your Avatar |
jt_after_position |
Your Position |
jt_after_company |
Your Company |
jt_after_website |
Your Website |
jt_after_video |
Video |
jt_after_vote |
Your rating |
jt_after_category |
Category |
jt_after_state |
Status (only shown to users with Edit State) |
jt_after_testimonial |
Your Testimonial |
jt_after_captcha |
The captcha |
The move happens in the browser with JavaScript, after the page loads. The target field must be visible in the form.