Hot answers tagged

9

I see now that you are working on core code. But just for the record, if you were doing this in an extension you would proceed by implementing hook_civicrm_tabset.


7

Non-programming approach: Use HTML Snippets for the profile. If it is not working according to documentation in book it might be that a) the documentation needs to be updated, or b) there is a bug in this functionality, or c) there is a bug in the custom page that includes the snippet. I would expect that c), b) and then a) are the likely order of solving ...


6

This has been a feature request from time-to-time, and would be a great one to submit to the Paid Issue Queue. If you want to DIY a solution I'd suggest you create a simple textfield as your custom field, and then use jQuery to add some extra radios that hide and populate the field unless the "other" box is selected, then show the field.


6

We have implemented a newsletter signup form into a static non-drupal page by using profiles. The profile generator actually works quite well (using CiviCRM 4.4) but the resulting form is kind of overloaded. But you can break down the markup to a simple form: <form method="post" action="https://example.com/civicrm/profile/create?gid=12&...


6

Solution was for the user to test this logged out.


6

Just wanted to share how a volunteer Admin for one of our projects is handling assets - e.g. Table assignments for Events; Room assignments for Camp; Equipment etc. Warning: must be abstract thinker - and you'll never look at Tables the same :-) Let's look at Table assignments for Events - as I have the site open and can pull in some screenshots - to Demo ...


5

You might want to check out the CiviWCI extension. It's still in beta format - and when I tried it on Wordpress, I found a hard-coded URL that assumed Drupal. It's designed for this situation though.


5

I have implemented this as a resource for an IFRAME. My implementation was in Drupal not Joomla and just used the CiviCRM API. So I built a simple app in Drupal that took a mailing list Id on its URL, checked that this was one that allowed public sign-ups, built and validated the form and then used CiviCRM's API to add the records. Then other sites simply ...


5

I have accomplished this using the CiviDiscount module. It works well. You'll just need to create a code that offers a 100% discount and then only share this code with people whom you deem qualified for free registration.


5

To implement this purely in CiviCRM with WordPress: Create a standalone profile form to collect name, email, etc. Create a second profile form to collect other information. If you want it to record an activity, you can set it up as a "Petition" form. If you want it to register the contact for an event, embed it in an event registration page. Back to the ...


5

I figured it out with the help of my mentor Kurund Jalmi. Make changes to the following files: 1) civicrm/CRM/Event/Form/ManageEvent/TabHeader.tpl 2) civicrm/CRM/Event/xml/Menu/Event.xml 3) Do a menu rebuild 4) Create the corresponding php and template files


5

I would create a custom extension as explained here or using an existing one and implementing hook_civicrm_buildForm Updated function myextension_civicrm_buildForm( $formName, &$form ) { if ("CRM_Group_Form_Edit" == $formName) { if ($form->getAction() == CRM_Core_Action::ADD) { $defaults = array ("group_type[2]" => true); $form-&...


5

So this is definitely possible. I'm assuming that you asking the question, you have some Drupal FAPI experience. If you have CiviCRM installed already check out the API explorer, and check out the Contribution entity, transact action Documentation of this API is spotty to non-existent, but its powerful, and works. There is actually a sophisticated ...


4

To publish CiviCRM forms in WordPress you need to put a CiviCRM shortcode in some content exposed to site visitors, such as a Post or Page: Click to select a CiviCRM front-end form or page: Then select one of the CiviCRM front-end content types. Depending on which one you choose, different options become available: Note that only active CiviCRM content ...


4

Looking at the release notes for CiviCRM 4.7.11 there was a security issue that was fixed to do with these external snippets: https://civicrm.org/advisory/civi-sa-2016-17-manage-csrf-overrides-for-external-profile-forms The release notes state, though, that existing installations should not have been affected by the update. I would recommend that you look ...


4

After a long frustrating debugging I found the answer on this two pages: Installation and Configuration Troubleshooting Anonymous Users Cannot Contribute For Drupal sites, ensure that uid = 0 exists in your Drupal users table. This is required for anonymous access to CiviCRM pages and forms to work properly.


4

You can use the word replacements feature, if you want to replace the word everywhere. Or if you're just using that field for a different purpose, create a new custom field instead.


4

The questions about "assign housing and coordinate special needs" would really need more specific requirements to be able to provide a substantive answer. If 'assign housing' means something like, "provide fields so people can indicate whether they want single rooms, shared rooms, or specify other attendees that they want to share with" then yes I can ...


4

This is possible with CiviRules. However, I'd argue that in most cases you'd rather use a Smart Group. If you're committed to using CiviRules though: You'll need two rules. One with a trigger of "Any contact is added" and one with "Any contact is changed". If this only applies to individuals, you can substitute the appropriate triggers. The condition ...


4

If you paid for Gravity Form-CiviCRM integration, I would contact the authors for support. Meanwhile, most of the community uses Caldera Form with Caldera Form-CiviCRM integration. I know this feature exists with Caldera Form-CiviCRM but haven't used Gravity Form integration.


4

I'd recommend using Caldera Forms CiviCRM which has great integration with WordPress via the superb Caldera Forms plugin. Check out the tutorial by Tadpole Collective to get yourself going with Caldera Forms CiviCRM.


4

Take a look at the No Overwrite extension which prevents name changes on event registration forms.


4

Here's a similar question: Can I add a space for people to write notes: like dietary needs and or comments? And here's an outstanding request for the feature here: https://www.drupal.org/project/webform_civicrm/issues/2320295 The conclusion is: consider putting the note somewhere else, e.g. an activity or custom field. Although the notes field seems like ...


3

Creating a form in an extension is mostly a matter of typing civix generate:form. It is documented here.


3

John - There's an existing pattern for simply add the markup to the template for cases like this, and I think it's fine for this situation. So in Register.tpl, just add this markup after the label: <span class="crm-marker" title="{ts}This field is required.{/ts}">*</span> Note that there was evidently some spots where this technique was used / ...


3

Your best option is to do what you were doing previously. However, you will need to modify your customized template to extract details from the $billingDetailsFields array rather than the hard coded fields. I suspect the names are the same, so the translation should be relatively simple. You can use smarty debug to get more details on the contents of the ...


3

The bug come from QuickForm being used to render in "freeze" mode (read-only) for the contribution confirm page. The bug had been reported here: https://issues.civicrm.org/jira/browse/CRM-14588 I wrote a patch for it against CiviCRM 4.7 (master dev branch), but it should be easy to apply on 4.6: https://github.com/civicrm/civicrm-core/pull/5729 Could you ...


3

On the first step when creating a new event, down near the bottom of the form, there is a checkbox labelled "Is this Event Active?" Un-check this and the event will be hidden from the public. You can come back later to set to true -- it's on the first tab when configuring the event. To display the event on a WordPress / CiviCRM site you need to insert a ...


3

CiviCRM should have those radio elements on the same line by default. My guess then is that the website theme or some other module/extension in place alters this behaviour. This is really a CSS question, and since you're already not seeing the default appearance of CiviCRM forms (see Drupal, Joomla!, WordPress examples), your question is likely going to be ...


3

Drupal core is now protected against clickjacking by default: https://www.drupal.org/node/2735873 You can install Security Kit module -> and then add specific allow-from domains.


Only top voted, non community-wiki answers of a minimum length are eligible