Home › Forums › Calendar Products › Events Calendar PRO › Integration with Gravity Forms?
- This topic has 64 replies, 15 voices, and was last updated 12 years, 3 months ago by Rob.
-
AuthorPosts
-
November 4, 2011 at 8:09 pm #10630Jamie OastlerParticipant
The first half of that might be a lot easier than that now….
The Gravity Forms + Custom Post Types add-on (http://themergency.com/plugins/gravity-forms-custom-post-types/) offers ability to put both taxonomy or post type entries into standard drop-down fields.Still can’t seem to make it quite work, but that might help the process for someone else.
November 5, 2011 at 9:25 pm #10659Jamie OastlerParticipantThe recent updates to GF 1.6 and the Custom Post Type plugin for GF has made this integration quite easy for the first scenario.
Create a standard drop-down with dynamic population parameter name ‘EventVenueID’ and specify Populate with a Post Type of ‘Venues’. Setting the default entry to something like ‘–select venue–‘.
November 6, 2011 at 4:41 pm #10670ChristinaParticipantMy goodness, Jamie, I have no idea what any of that means 🙂 In my implementation, everything is being properly stored except the venue name. It is always stored as “Unnamed Venue”. But the interesting part is that the permalink for the venue is correct. For instance, If I submit the form with the venue as “Town Hall”, “123 Main Street”, “Anytown USA”, The venue is added as “Unnamed Venue”, “123 Main Street”, “Anytown USA”. But the permalink created is “…/town-hall/”.
November 14, 2011 at 1:25 pm #11064MarkusParticipantHey,
any solution or should we still wait for the community plugin?
November 14, 2011 at 1:27 pm #11065MarkusParticipantAny Solutions? Or should we wait for the community plugin?
November 16, 2011 at 5:29 pm #11210Jamie OastlerParticipantChristina: Was just putting out what info I could find in hopes it might help someone else figure a full solution.
I’m now at the same point you are – stores organizer info perfect, but venue only stores permalink with venue name, not the venue post title.
I did manage to setup dynamic drop-down lists for venues / organizers which you can select from previously created ones that works via the following:
-Create a standard dropdown field. In the advanced tab specify populate dynamically with field title VenueSelect (or OrganizerSelect for that)
-Paste the code from http://pastebin.com/t3W0ntgz into your functions.php making sure to replace the _6 in gform_pre_render_6 with whatever the ID for your form is.
-In the gform_pre_submission function where you do the format_event_date function, you’ll need to check that field to store venueID / organizerID or not as this example does: http://pastebin.com/Nyj08q1h
My temporary work-around is since events are posted to draft and GF stores the populated data, when an event is posted for a new venue I manually create the venue and associate to the event. Hoping either a solution for this or the community events comes out soon though.
November 17, 2011 at 8:36 am #11220RobertMemberOut of curiosity, does this support moderation of what is submitted and viewed on the website? Say I want to review all events submitted before posted to the site. Can this happen?
November 17, 2011 at 7:11 pm #11248RobMemberRobert: yup, it should if you’re using Tim’s walkthrough; by default they’ll all appear as drafts until an admin approves. Hope that helps.
November 20, 2011 at 2:38 pm #11324cleverdaisiesParticipantHi there!
Good afternoon everyone!
Nothing I do seems to be working. The form submits and creates the event however nothing past the date seems to populate. Basically the custom fields. Except for the cost of the event, which seems to be the only custom field that is working.
Christina, were you ever able to get this completely working before the website launched? Any tips?
On a side note, is there any news on when the community add-on might be released?
Thanks for your help!
MeghanNovember 20, 2011 at 5:58 pm #11325ChristinaParticipantHi Meghan,
No, not completely. I’m storing everything but the venue name. And I didn’t attempt to build in reocurrance. The site launched last week and I’m going to have to manually adjust venue names until the community add-on is available.
If you’d like me to share my code in it’s entirety, let me know and I’ll post in for you.
Thanks,
ChristinaNovember 21, 2011 at 8:21 am #11338cleverdaisiesParticipantThanks so much Christina! I would love if you would share your code/process with me. The site is launching this week so I would love to have it working, at least for the most part until the community add-on is released.
Thanks again for your help!
November 21, 2011 at 8:43 am #11340ChristinaParticipantMeghan, My functions.php code is here
http://www.iostudio.net/gravity.htmlTo modify for your purposes, you’ll need to change the form and field IDs to match your form.
If you are wondering about the code, or need explanations of it, these are the sources.
I used Tim’s walkthrough as a start:
http://creativeslice.com/tutorials/gravity-forms-events-calendar-submissions/Added in bits of code from here:
http://support.makedesignnotwar.com/discussion/comment/5379/#Comment_5379And the Save Post details from here:
https://theeventscalendar.com/event-submissions-using-gravity-forms-in-2-0/Let me know if I can help further. Thanks!
November 21, 2011 at 8:48 am #11341ChristinaParticipantOne more thing – for the custom field names , I used these. It’s a minor adjustment from Tim’s walkthrough
_VenueVenue
_VenueAddress
_VenueCity
_VenueStateProvinceNovember 21, 2011 at 8:53 am #11342cleverdaisiesParticipantThanks so much Christina! I will try this today and let you know if I have any questions.
November 21, 2011 at 10:37 am #11348RobMemberThanks a lot Christina 🙂
-
AuthorPosts
- The topic ‘Integration with Gravity Forms?’ is closed to new replies.