CMS Development

Caroline1981
Member

crmobject type field not working after selection

Hi everyone,

 

I added a field to my module with type crmobject, here is the code:

 

  {
    "name" : "product",
    "label" : "Product",
    "required" : false,
    "locked" : false,
    "object_type" : "shopify_product",
    "properties_to_fetch" : [],
    "type" : "crmobject"
  },

 

The field appears fine in the editor, I can select an item, but then see this:

 

Screenshot 2021-10-21 at 12.45.20.png

 

After a page refresh the correct item will appear selected. 

 

I can't see anything from with the field declaration, does anybody know what might be wrong?

0 Upvotes
7 Replies 7
Caroline1981
Member

crmobject type field not working after selection

@Kevin-C Here goes:

 

{
    "name": "shopify_product",
    "labels": {
        "singular": "Shopify product",
        "plural": "Shopify products"
    },
    "primaryDisplayProperty": "title",
    "requiredProperties": [],
    "properties": [
        {
            "name": "available_for_sale",
            "label": "Available for sale",
            "type": "enumeration",
            "fieldType": "booleancheckbox",
            "options": [
                {
                    "label": "Yes",
                    "value": "true"
                },
                {
                    "label": "No",
                    "value": "false"
                }
            ]
        },
        {
            "name": "collections",
            "label": "Collections",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "compare_at_price_range",
            "label": "Compare at price range",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "created_at",
            "label": "Created at",
            "type": "datetime",
            "fieldType": "date"
        },
        {
            "name": "description",
            "label": "Description",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "description_html",
            "label": "Description html",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "handle",
            "label": "Handle",
            "type": "string",
            "fieldType": "text",
            "hasUniqueValue": true
        },
        {
            "name": "id",
            "label": "ID",
            "type": "string",
            "fieldType": "text"
        },
        {
            "name": "images",
            "label": "Images",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "media",
            "label": "Media",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "metafield",
            "label": "Metafield",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "metafields",
            "label": "Metafields",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "online_store_url",
            "label": "Online store url",
            "type": "string",
            "fieldType": "text"
        },
        {
            "name": "options",
            "label": "Options",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "price_range",
            "label": "Price range",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "product_type",
            "label": "Product type",
            "type": "string",
            "fieldType": "text"
        },
        {
            "name": "published_at",
            "label": "Published at",
            "type": "datetime",
            "fieldType": "date"
        },
        {
            "name": "requires_selling_plan",
            "label": "Requires selling plan",
            "type": "enumeration",
            "fieldType": "booleancheckbox",
            "options": [
                {
                    "label": "Yes",
                    "value": "true"
                },
                {
                    "label": "No",
                    "value": "false"
                }
            ]
        },
        {
            "name": "selling_plan_groups",
            "label": "Selling Plan Groups",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "seo",
            "label": "SEO",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "tags",
            "label": "Tags",
            "type": "string",
            "fieldType": "text"
        },
        {
            "name": "title",
            "label": "Title",
            "type": "string",
            "fieldType": "text"
        },
        {
            "name": "total_inventory",
            "label": "Total inventory",
            "type": "number",
            "fieldType": "number"
        },
        {
            "name": "updated_at",
            "label": "Updated at",
            "type": "datetime",
            "fieldType": "date"
        },
        {
            "name": "variants",
            "label": "Variants",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "variant_by_selected_options",
            "label": "Variant by selected options",
            "type": "string",
            "fieldType": "textarea"
        },
        {
            "name": "vendor",
            "label": "Vendor",
            "type": "string",
            "fieldType": "text"
        }
    ]
}
0 Upvotes
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

crmobject type field not working after selection

Hey @Caroline1981 

Yep that schema all looks fine, so this might be an actual bug!
Recently we've had trouble getting support to elevate these type of issues. Maybe a moderator or your hubspot rep can elevate this for you?

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
dennisedson
HubSpot Product Team
HubSpot Product Team

crmobject type field not working after selection

@Caroline1981 , you should be able to log a ticket and reference this post.  Info is here

Thanks for taking a look @Kevin-C 

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

crmobject type field not working after selection

@Caroline1981 , did you figure this out?

@John any chance you can lend a hand?

0 Upvotes
Caroline1981
Member

crmobject type field not working after selection

Not yet, this behaviour is still persisting, any help is welcome 🙂

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

crmobject type field not working after selection

@Kevin-C , throwing you into the mix

0 Upvotes
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

crmobject type field not working after selection

Thanks @dennisedson 

 

Hey @Caroline1981 

 

So we've seen a lot of strange "happenings" with custom objects in the last ~3 months. I'd assue this is because HS is pushing new/modified functionality.

 

Could you post the objects schema? With that we might be able to get some insights.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev