# Hide Custom CRM Card

**URL:** <https://community.hubspot.com/t/hide-custom-crm-card/75433>\
**Category:** APIs & Integrations\
**Tags:** developer, crm, best-practices\
**Created:** [February 17, 2023, 7:32am UTC](https://community.hubspot.com/t/hide-custom-crm-card/75433 "2023-02-17T07:32:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumarb1](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@kumarb1](https://community.hubspot.com/u/kumarb1)\
**Post date:** [February 17, 2023, 7:32am UTC](https://community.hubspot.com/t/hide-custom-crm-card/75433/1 "2023-02-17T07:32:27Z")

</div>

Hello,

I am working on CRM Card

I have created one card for ticket object, and it’s working.

My issue is, on some tickets I don’t want to display this card, I will decide that based on specific ticket property.

```lia-code-sample
if(isset($request->userId) && isset($request->source_type)){
	$result = array(
		'results' => [],
		'primaryAction' => array(
			'type' => 'IFRAME',
			'width' => 890,
			'height' => 748,
			'uri' => 'https://example.com/create-iframe-contents',
			'label' => 'Send Message'
		)
	);
}else{
	$result = array(
		'results' => [],
		'primaryAction' => []
	);
}

```

Here you can see in my code, If ticket has a property source\_type than only I want to display my CRM card, or else I am sending blank response.

The problem is blank response is giving error on Ticket CRM card,

 ![kumarb1_1-1676618999583.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/c/6c34efb269c85544305a78ef5e8aa0ff81512f1a.png)

So, my question is, What response I should send, when I don’t want to display my CRM card.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [February 17, 2023, 7:00pm UTC](https://community.hubspot.com/t/hide-custom-crm-card/75433/2 "2023-02-17T19:00:57Z")

</div>

Hi, @kumarb1 👋 Thank you very much for including your details. It’s much appreciated. Hey, [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) @jpsanchez @PAtlan have you tackled anything similar in your project work? Thanks for taking a look!

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![PAtlan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/patlan/32/42298_2.png) [@PAtlan](https://community.hubspot.com/u/PAtlan)\
**Post date:** [March 2, 2023, 2:27pm UTC](https://community.hubspot.com/t/hide-custom-crm-card/75433/3 "2023-03-02T14:27:58Z")

</div>

Hi @kumarb1 , sorry for picking this up late. We’ve had similar issues, and as far as we see, there is no way NOT to show the card. In our case we are lucky because we have something to show all the time, so it’s not an issue. But I’d second an idea to develop “conditional” cards.

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [February 19, 2023, 9:09pm UTC](https://community.hubspot.com/t/hide-custom-crm-card/75433/4 "2023-02-19T21:09:08Z")

</div>

Hi @kumarb1

We couldn’t figure out how to hide the CRM Card so we returned some text (json) explaining that the card was empty. This stops errors and explains to users why the card isn’t showing information.

Have fun

Mike

---

<div class="post-metadata">

**Author:** ![kumarb1](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@kumarb1](https://community.hubspot.com/u/kumarb1)\
**Post date:** [February 20, 2023, 4:15am UTC](https://community.hubspot.com/t/hide-custom-crm-card/75433/5 "2023-02-20T04:15:40Z")

</div>

Hello Mike,

I understand that, But Isn’t there any way to hide CRM card?, There should be a specific response format when we don’t want to display the card.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 8, 2023, 12:08am UTC](https://community.hubspot.com/t/hide-custom-crm-card/75433/6 "2023-03-08T00:08:03Z")

</div>

Hi, @kumarb1 Based on the lack of specific documentation + the comments from our community, I’d suggest creating an [Ideas post](https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas). My guess is we can get @PAtlan and [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) to add an upvote as well.

Best,

Jaycee
