Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.5.14, advanced custom fields, custom post types
- This topic has 4 replies, 2 voices, and was last updated 10 years, 3 months ago by
Steven Zahm.
-
AuthorPosts
-
05/06/2016 at 3:01 pm #375465
ottomek
ParticipantHi,
We have a very complex and long directory form and instead of adding Custom Fields to the Form were hoping to use Custom Post Types and Advanced Custom Fields to create this elaborate sign-up form.Will this work with the directory? We know we may have to customize template to display all the extra fields on the public side.
Thoughts? Thanks,
John05/06/2016 at 3:20 pm #375466ottomek
ParticipantI forgot to clarify that Advanced Custom Fields is a plugin.
05/06/2016 at 5:40 pm #375482Steven Zahm
Keymaster@ ottomek
I do not believe this will work because Connections does not use a CTP. You’ll likely better off using a form builder plugin to create your form then use actions/filters to add the entry programmatically.
Hope that answers your question.
05/06/2016 at 5:50 pm #375483ottomek
ParticipantAh thanks. I use Gravity forms a lot so that will be pretty easy to do.
Is there any FAQ or How-to in Connections Pro discussing actions/filters? I’m wondering how to get all the extra fields into the directory to be populated? Would that be adding custom fields/metabox?
05/09/2016 at 11:57 am #375641Steven Zahm
Keymaster@ ottomek
Is there any FAQ or How-to in Connections Pro discussing actions/filters?
Sorry, no there is not. Here’s a list of Gravity Forms hooks I used on a custom project:
gform_pre_render_n
gform_pre_validation_n
gform_pre_submission_filter_n
gform_admin_pre_render_nThe
_npart of the hook name is the Gravity Form ID. The above hooks were used to populate the Connections Categories in a Gravity Forms checklist form field. You would use thecnTerm::getTaxonomyTerms()function to retrieve them.gform_user_registeredYou would use this action to insert a Connections entry. You would use the
cnEntry_Action::add()method to insert an entry and after a successful insert you would set the category relationships usingcnTerms::setTermRelationships()gform_pre_render_nThe
_npart of the hook name is the Gravity Form ID. You would use this hook to populate the Gravity Form with the entry details. To get the entry detail you would use thecnRetrieve::entry()method.gform_after_submissionYou would use this action to edit a Connections entry. To update an entry you would use the
cnEntry_Action::update()method.I’ve glossed over a lot of details but digging into the code you can likely figure it out.
Hope that helps!
ps. I am working on a new class of addons for Connections called Connectors. The first of which is a Gravity Forms Connector. What I have done, works very well is is completely compatible with other Gravity Forms addons such as User Registration, MailChimp and PayPal Gateway using Gravity Forms Feed API. When will this be done, unfortunately this is unknown and will likely be quite a while. Thought I’d mention as it may be useful in future projects.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
