Gravity Forms add-on that creates tickets in MyIT (Cherwell) from WordPress form submissions.
- Gravity Forms
- Cherwell API Key
- Make sure the Gravity Forms is installed and activated.
- Install and activate plugin for a site. (Network Activate hasn't been tested)
In the site's dashboard menu, go to Forms > Settings. Click the 'MyIT' tab.
- Add the API URL. Enter the URL for creating a new ticket using POST (no trailing slash).
- Add your API key. Contact UFIT for support for your unit.
- Edit the form and add required fields (GatorLink username, UFID, and API response). The API Response field must be a hidden field and will contain either the new ticket number or the error message after the form has been submitted and will be saved in the entry. Example:
- Enable MyIT submissions for the form. Go to the form settings and select the MyIT tab. Check 'Enable MyIT'. This allows you to choose which forms will create new tickets.
- Add the required ticket information. For the ticket summary and the description fields, use the merge tag dropdown menus on the right to use the submitted value of form fields.
In the confirmation message, click the merge tag dropdown menu next to the message field and select your API Response hidden field. This will either display the ticket number or the Cherwell error message.
Default message: Ticket #123456789 has been submitted
You can add modifiers to merge tags like {all_fields}. To hide all hidden fields, use {all_fields:nohidden}
By default, this plugin formats list fields as plain text because HTML isn't supported in ticket descriptions and specifics fields. The exception is when list values are displayed using {all_fields}
.
To change the format back to a table, add the :html modifier to the merge tag.
Example: If a list's merge tag is {Accounts:33:}
, change it to {Accounts:33:html}
.
- Fixes display of line breaks in the ticket message after upgrade
- Fixes display of quotes and apostrophes in select fields
- Logs request and response to the error log if WP_DEBUG is true
- Fixes display of quotes and apostrophes in text and paragraph text fields
- Adds support for merge tags in the ticket summary field
- Fixes error message display to show Cherwell and API errors
- Fixes errors if form doesn't have specifics data
- No longer prepends 'Specifics.' to each specifics field name. Must be added manually in form settings.
- Initial commit using the Addon Framework, replaces defaults file.