Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query for Saved Custom Ticket Fieldsets #34

Open
craigwilcox opened this issue Oct 11, 2021 · 0 comments
Open

Query for Saved Custom Ticket Fieldsets #34

craigwilcox opened this issue Oct 11, 2021 · 0 comments
Assignees
Labels
effort-8 Major coding, much research needed enhancement New feature or request feature request
Milestone

Comments

@craigwilcox
Copy link
Collaborator

craigwilcox commented Oct 11, 2021

In TEC admin area, it's possible to add and save custom fieldsets that can be used across multiple classes. An image of creating a fieldset from the admin area follows:

image

For each of the added custom ticket fieldsets, we need to obtain the following information:

  1. Title.
  2. Type. (Text, Radio, Checkbox, Dropdown, Email, Telephone, URL, Birth Date, Date).
  3. From each of the types, we need to be able to get the key-value pairs available, such as Label, Description, and Options for a Checkbox. Any field with returned lines needs to be exposed in a way we can parse the data accurately.

A sample query for a custom ticket field could look like this:

query CustomTicketsQuery {
 event (id: X, idType: databaseID) {
  wooTickets {
   customTicketFields {
   nodes {
    fieldType {
     Label
     Description
     Options
     Required
     }
    } 
   }
  }
 }
}

With this information, we will be able to create the necessary fields for each of the tickets.

Plugins Needed

Event Tickets (for Custom Ticket Fieldsets)
Event Tickets Plus (for WooTickets integration)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort-8 Major coding, much research needed enhancement New feature or request feature request
Projects
None yet
Development

No branches or pull requests

3 participants