Giter VIP home page Giter VIP logo

ufclas-myit's Introduction

UFCLAS - MyIT

Gravity Forms add-on that creates tickets in MyIT (Cherwell) from WordPress form submissions.

Requirements

  • Gravity Forms
  • Cherwell API Key

Installation

  • Make sure the Gravity Forms is installed and activated.
  • Install and activate plugin for a site. (Network Activate hasn't been tested)

API Settings

In the site's dashboard menu, go to Forms > Settings. Click the 'MyIT' tab.

  1. Add the API URL. Enter the URL for creating a new ticket using POST (no trailing slash).
  2. Add your API key. Contact UFIT for support for your unit.

Form Settings

  1. 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:
  2. 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.
  3. 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.

Form Confirmation Settings (optional)

Displaying the ticket number

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

Hiding the API Response field when using {all_fields}

You can add modifiers to merge tags like {all_fields}. To hide all hidden fields, use {all_fields:nohidden}

Displaying list field values as an HTML table instead of plain text

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}.

Changelog

1.1.2

  • 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

1.1.1

  • Fixes display of quotes and apostrophes in text and paragraph text fields

1.1

  • Adds support for merge tags in the ticket summary field

1.0.1

  • 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.

1.0.0

  • Initial commit using the Addon Framework, replaces defaults file.

ufclas-myit's People

Contributors

priscillamc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.