The ticket embedded form can work as a contact form for your website. Each message becomes a new ticket.
Turn on the form
- Go to Settings > Tickets.
- Turn on Enable embedded form to get tickets.
- Choose the options below and click Save.
Form options
| Option | What it does |
| Hide fields from the embedded form | Hide the title, ticket type, name or files fields. Email and description are always shown. If the title is hidden, the first words of the message become the ticket title. |
| Default ticket type | The ticket type of new tickets when the ticket type field is hidden. |
| Success message | The text shown after the form is sent. Use plain text, HTML is removed. Leave it empty to show the default message. |
Show the form on a RISE page
Go to Settings > Pages, and add this text to the page content:
{TICKET_FORM}
You can add options:
{TICKET_FORM hide_title=1 ticket_type_id=2}
- hide_title=1 hides the "How can we help?" heading.
- ticket_type_id selects a ticket type for this form.
Only one form is shown on a page.
The form has a hidden spam trap. To block more spam, turn on reCAPTCHA in Settings > Integration.
Show the form on another website
Click the code icon next to the setting and copy the iframe code. You can add ?hide_title=1 or ?ticket_type_id=2 to the form URL.
For plugin developers
Use these functions in a plugin:
| Function | Returns |
| get_ticket_embedded_form($options) | The form HTML. Use it in pages that load the RISE layout. |
| replace_ticket_form_shortcode($content) | The content with {TICKET_FORM} replaced by the form. |
| get_ticket_embedded_form_url($options) | The form URL, for an iframe. |
Options: show_title (true or false) and ticket_type_id. The functions return an empty form when the setting is off.
echo get_ticket_embedded_form(array("show_title" => false, "ticket_type_id" => 2));