Skip to content

No field coming from Contact subtype #46

Description

@Treast

I've created a Contact subtype (Contact_particulier), and created a profile using this subtype (only email is set from Contact). I imported the form on another website, but only the email fields is shown. I checked the response, and fields are not well defined :

{
   "is_error":0,
   "version":3,
   "count":6,
   "values":{
      "prefix_id":{
         "api.aliases":[
            
         ],
         "name":"prefix_id"
      },
      "first_name":{
         "api.aliases":[
            
         ],
         "name":"first_name"
      },
      "last_name":{
         "api.aliases":[
            
         ],
         "name":"last_name"
      },
      "custom_57":{
         "api.aliases":[
            
         ],
         "name":"custom_57"
      },
      "email-primary":{
         "name":"email",
         "type":2,
         "title":"Courriel",
         "description":"Courriel",
         "maxlength":254,
         "size":30,
         "import":true,
         "where":"civicrm_email.email",
         "headerPattern":"\/e.?mail\/i",
         "dataPattern":"\/^[a-zA-Z][\\w\\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$\/",
         "export":true,
         "rule":"email",
         "table_name":"civicrm_email",
         "entity":"email",
         "bao":"CRM_Core_BAO_Email",
         "localizable":0,
         "html":{
            "type":"Text",
            "maxlength":254,
            "size":30
         },
         "add":"1.1",
         "is_core_field":true,
         "api.required":"1",
         "help_pre":null,
         "help_post":null,
         "weight":"4",
         "api.aliases":[
            "email-Primary"
         ]
      },
      "profile_id":{
         "api.required":true,
         "title":"Profile ID",
         "name":"profile_id"
      }
   }
}

image

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions