Title: Add IAC Fields Programatically
Last modified: April 14, 2022

---

# Add IAC Fields Programatically

 *  Resolved [digitalmedium1](https://wordpress.org/support/users/digitalmedium1/)
 * (@digitalmedium1)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/add-iac-fields-programatically/)
 * Hi there,
 * I asked this in the premium support and it was suggested that I post here for
   support.
 * Is there a way I can add IAC information to a ticket programatically? I essentially
   want the user to fill out their name and email address in a form and then when
   they submit the form and add tickets to their cart, I want to use the name and
   email address that is entered into the form to then fill out the attendee information
   for the tickets that are selected in the background.
 * Is there a hook or function that anyone can point me to which would help me achieve
   this?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [WilloftheD](https://wordpress.org/support/users/abzlevelup/)
 * (@abzlevelup)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/add-iac-fields-programatically/#post-15560529)
 * Hello [@digitalmedium1](https://wordpress.org/support/users/digitalmedium1/),
 * Thanks for reaching back to us.
 * I reached out to our dev team, we do not have a current solution for this as 
   there are more things to consider and this would fall under customization. There
   are no hooks/functions that would handle the behavior of what you are trying 
   to accomplish here. One thing to note that customization like this is out of 
   our support scope.
 * Moreover, to be honest the [Rest API](https://theeventscalendar.com/knowledgebase/k/introduction-to-the-events-calendar-rest-api/)
   wouldn’t help with this kind of behavior as well, and we do not have the endpoint
   for it. I’m thinking this could be possible with JS (not entirely sure). Just
   an idea though, getting the name and email address and store it on the browser/
   cookie/local storage, then have another step to redirect to the ticket page then
   autofill the ticket form. This is me thinking of the possibilities, but with 
   our plugin it is not still possible.
 * It would also be good if you could reach out to websites that provide these kinds
   of Custom Development services, or if you do have the coding skills.
 * Have a great day. Let me know if you do have other questions.
 * Best,
    Abz
 *  [roperjonathan](https://wordpress.org/support/users/roperjonathan/)
 * (@roperjonathan)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/add-iac-fields-programatically/#post-15570615)
 * Hi [@abzlevelup](https://wordpress.org/support/users/abzlevelup/),
 * Sorry the email from WordPress landed in my junk folder so have only just seen
   your response.
 * So the only other option I can think of would be to list all of the different
   availiable combinations as their own tickets. So for example, I would have:
 * Ticket
    Ticket + meal Ticket + field trip Ticket + meal + field trip
 * This should then mean that each person then just buys one ticket.
 * However, if I were to do this, is there a way to not have stock for each ticket
   type but instead make the stock of all of the different ticket types dependent
   on the capacity of the venue? So for example, if my venue has a capacity of 500
   people, then all of the tickets would go out of stock once 500 of the above tickets
   have been sold.
 * Is there also a way I could then also have individual stock levels on top of 
   the overall capacity? So for example, could I give the Ticket + meal + field 
   trip option 100 tickets so that if those 100 tickets are sold BEFORE the capacity
   is reached for the venue, then it marks the Ticket + meal + field trip option
   as being out of stock (but with the other 3 options then still being availiable).
 * Thanks!
 *  Plugin Support [WilloftheD](https://wordpress.org/support/users/abzlevelup/)
 * (@abzlevelup)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/add-iac-fields-programatically/#post-15577612)
 * Hi [@roperjonathan](https://wordpress.org/support/users/roperjonathan/),
 * No worries! Appreciate you providing me more context here.
 * Out of the box, we really do not have a feature/option to cater the behavior 
   of what you are trying to achieve here. However, I would suggest creating different
   tickets with different combination and have them as shared capacity, then add
   a cap for each combination. In this way, you would have a default 1 ticket per
   combination, then you could track each tickets.
 * See the screen recording here:
    [https://share.getcloudapp.com/YEurJJ6m](https://share.getcloudapp.com/YEurJJ6m)
 * Learn more about shared capped capacity here:
    [https://theeventscalendar.com/knowledgebase/k/making-tickets/#global-stock](https://theeventscalendar.com/knowledgebase/k/making-tickets/#global-stock)
 * One thing to note here that the shared capacity is only available with the [Event Tickets Plus](https://theeventscalendar.com/products/wordpress-event-tickets/).
 * Let me know if this helps.
 * Best,
    Abz
 *  Plugin Support [WilloftheD](https://wordpress.org/support/users/abzlevelup/)
 * (@abzlevelup)
 * [4 years ago](https://wordpress.org/support/topic/add-iac-fields-programatically/#post-15623756)
 * Hey [@roperjonathan](https://wordpress.org/support/users/roperjonathan/), this
   thread has been inactive for a while, so we’re going to go ahead and mark it 
   Resolved. Please feel free to open a new thread if any other questions come up,
   and we’d be happy to help.
 * Best Regards,
    Abz

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Add IAC Fields Programatically’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [tickets](https://wordpress.org/support/topic-tag/tickets/)

 * 4 replies
 * 3 participants
 * Last reply from: [WilloftheD](https://wordpress.org/support/users/abzlevelup/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/add-iac-fields-programatically/#post-15623756)
 * Status: resolved