New answers tagged

0

Adding another answer since this might work for you better. In your extension in hook_civicrm_buildForm do something like this. I'm not sure if this is documented anywhere but the country/state chain will do some autowiring for you if your fields are named in a special way. function myextension_civicrm_buildForm($formName, &$form) { if ($formName == '...


1

CRM.api3('StateProvince', 'get', { "sequential": 1, "return": ["name","country_id.name"], "options": {"limit":0} }) UPDATE: I haven't tried this but Lodash v3 is loaded on most civi pages so you might be able to use filter or forEach to combine the results of the above with the countryLimit ...


2

The entity is called UFGroup, and UFField for the fields. The naming is historical. The Profile entity is used to do something equivalent to filling out and submitting a profile form on the front end.


1

type is the data type - eg Integer, String, Boolean. If you use APIv4 Contact.getfields returns data_type with more obvious strings. For example: "data_type": "Integer" "data_type": "String",


3

Yes you can use the API CSV extension to import new events. Here is a good guide to do so: https://wapix.co/importing-events-to-civicrm/.


Top 50 recent answers are included