Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support activities #29

Open
hoegrammer opened this issue Aug 22, 2020 · 3 comments
Open

Support activities #29

hoegrammer opened this issue Aug 22, 2020 · 3 comments

Comments

@hoegrammer
Copy link

hoegrammer commented Aug 22, 2020

I want to create a remote newsletter signup form and it involves creating a Consent Update activity (because of how the site is set up for GDPR).

But when I add activity fields to the profile, they don't appear on the remote site.

I would like to add this functionality. I would be grateful for any info that might help me do this.

@hoegrammer
Copy link
Author

I have just seen that when I added the activity field and tried to display the form, this appeared in watchdog (in Civi):

Notice: Undefined index: comms_opt_ins_20180212183400 in _civicrm_api3_buildprofile_submitfields() (line 577 of /var/www/sites/all/modules/civicrm/api/v3/Profile.php).

@hoegrammer
Copy link
Author

The "Comms Opt-Ins" field is a custom field on the Consent Update activity type. The machine name of the field is comms_opt_in_90. So I am wondering where the string "comms_opt_ins_20180212183400" came from?

@mlutfy
Copy link
Contributor

mlutfy commented Sep 3, 2020

I use/wrote this extension in order to support activity fields: https://lab.civicrm.org/extensions/activityprofile

CiviCRM core does not normally allow add profile fields in profiles, so the extension provides a few workarounds.

Disclaimer: the extension does a fair amount of duct-tape for my own needs. I don't know if many people use it.

You can see it in action here: https://civicrm.org/register-a-site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants