Since you are passing $entity_id to id in participant params without checking it to be not empty. If $entity_id is empty then new participant will be created else it will be updated. Make sure your id is set before calling to participant api if you want to update the participant
Found the solution, it is a setting that was there all along.
On the CiviCRM configuration page under the Event Registration tab there is a section called Registration options. In here there is a checkbox to "Disable unregistering participants from unselected events" if you check that then as it says contacts will not get unregistered from events.
I understand that there are some issue when moving contact when logged is as Admin. You can also try an extension developed by LCD Services that moves participant from one contact to another.
I would use the CiviRules extension, you could structure it something like - if registered participant of 'X' event, send email of 'X' template.
With this you could just create an email template for each event within Civi with the links you would like them to access and it would automatically send to anyone who registers for the event.
Md Maidul Islam,
Bit difficult to understand from your question what you want to achieve.
1 - Do you mean to add participant for an event? Then you can use Entity = Participant and Action = Create api
$result = civicrm_api3('Participant', 'create', [
'event_id' => 3,
'contact_id' => 51,
2 - Do you mean to add participant for an event with ...
From the backtrace, you can see that the error is caused by a line in the org.civicrm.multidomaininvoicing extension. I assume this is your extension?
getvalue is only appropriate if you're sure that a value exists; in this case, you made an API call for a value that doesn't exist. If this is a possibility in your scenario, instead use get and search the ...
You can create a block using view.
Below exported view will list all events the logged in user is being registered.(To test you will need to import the views using below code)
$view = new view();
$view->name = 'event_listing';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'civicrm_participant';
$view->human_name = '...
OK - I have it,
for this I've set up a Scheduled Job that fires off to "attended" participants a few days after the event. I set up a smart group of "participants whos participatory date was after [a month ago]" so i didn't spam older participants, and used the group as an "include" filter.
Set up an event, of the right type, so ...
the following did the trick - works in this situation well enough as we only allow registering one participant:
The above grabs the participant ID of the first (and only in our case) participant
You can add Custom Fields specifically to Participant records and you can be more specific than just 'all participants' since the options provided are
Participants (Event Name)
Participants (Event Type)
You're on the right direction, participant notes are intended for this. But as you say, seems there is no way to show this field info on an event report.
Exists an improvement registered on CRM-20236
Include "Note" field of Registration record in event participant reports that would do what you want. If this is important for you and you don't have skills or ...
This is not a right way of adding participant with contribution associated with it. When there is payment associated with Participants than we need to specify line items in create Participant and/or Contribution api. I would suggest to use Order api to achieve your needs as it is straight forward and handles in convenient way for adding payments in CiviCRM.
Yes, Its possible to alter the Columns in some search results of CiviCRM and definitely YES for participant search result.
You can create an extension and implement hook_civicrm_searchColumns hook. You can also find an example how to use the hook in the documentation.
Other alternate would be to create a report with same filters as Participant search but ...
I confirmed that this is caused by having a name badge layout with a spacer field and sorting the participants by name prior to generating name badges. My work-around for now is to instead of using a spacer in the badge layout, to insert an unused blank field, and I can now print alphabetically sorted badges.
You could do it in multiple steps:
search for Event 1 participants then create a group
use advanced search, enter the new group in the group box, and in the events section select Event 2 participants
You could create both of those as smart groups if you want to check progress as registrations come in.
But hopefully someone has a more streamlined method!
I do this with our community, but we use Drupal and create an "organic group" for each event. We did some investigating of what it would take to migrate off Drupal and onto Wordpress, and group functionality was one of the difficult points.
In Wordpress, the closest I have found to this is the Group plugin. You could create a group for each event. Then ...
Another route to consider - add some custom fields to your Event entity, then you can put the url in to those fields, then you can set up a Sch Reminder that is using a token for the custom field, and bingo, each participant gets sent the links to the right document. Very light/easy solution. but i may still not have quite grasped the requirement :-)
I eventually found the error for this problem, which was triggering an error for CiviEvent registrations and event reminders. Guidance from @Demerit and @petednz should have led me to it sooner.
The problem was caused by an email address with a 9-letter top level domain, and regex in sparkpost.php which assumes that top level domains are between 2 and 4 ...
Welcome empiguet. I do not use WP so much and I may not quite follow your workflow but I think you would need to do something as follows
- if person registers then add to Smart Group
- if in Smart Group, then set specific WP role (this may need an extra extension, i don't know if WP offers it, i do know Drupal does so an equivalent may exist)
- set up WP ...
Advanced Search, Participant Search And reports only allows you to select 'One of' the selected option i.e it does "Event 1 OR Event 2" on the selected events.
But I guess you want "Event 1 AND Event 2", if so you can use CiviCRM >> Search >> Search Builder to do AND between conditions. See below attached image
Even if the label is different in English and Chinese, the above API with 'status_id' => "Registered", parameter should work fine as it is meant to make the mapping based on name and not label.
Anyway, I think you should be able to use id instead of passing the name of the participant status in the api params. Something like -
$statusOptions = ...
It can be easily done using hooks. Max participant is stored in civicrm_event table, so you need to fetch the value and then compare it with the count of participants registered in this event. All this check should be done after a participant is created. So, you could use post hook for the same. Sample(not tested) code is shown below -
Soft credits, by definition, allow you to credit a contact for a donation made by someone, for example the person who inspired the actual donor to make a donation. Paying for something on behalf of someone else is not considered a soft credit.
That said, the participant list that you access via the Participants hyperlink to the right-hand side of the event ...