Adding Address Formatter into Professionals-Standard Card

I’m trying to add the address formatter that I took from the location-standard card, to the professionals-standard card in the hopes of having a physicians address appear in the card. Right now I am attempting to use it in the subtitle field (not sure that’s where it will live in the end but just playing around). I took this “Formatter.address(profile)” line from the location-standard card and plugged it in for the subtitle value for the professional-standard card.

Right now I am seeing the actual HTML in live preview, as opposed to the actual address value (screenshot attached). My question is: 1) Is this the best way to approach adding the addresses into the professionals card, and 2) is there something I need to be changing in the address value I brought over from the location-standard card? Any help would be much appreciated :slight_smile:

Hi Nico,

You’re on the right track! You’ll just need to go into the handlebars template of the card, and make sure card.subtitle is contained with three brackets - {{{card.subtitle}}}.

Screenshot of where you can find this on the location-standard card below:

Let me know if that solves the issue!

I’m having the same issue as above, but in the details section, not the subtitle section. Adding a third bracket only helped if I click on “show more”, then the address goes back to normal. How can I avoid this HTML showing?

Hi Team,

I am running into the same issue as Priyanka. All the addresses for my professionals that have suite numbers only show up if I click on “show more”. What else can I do besides updating the handle bars?

Hey @Sarah_Bokhari - as discussed, I would recommend using the built in professional-location card to handle professional addresses. There is built in formatting with the theme card which should make this more straightforward!

Thanks,
Sam

Hi Sam,

Thank you for the response. It worked great!

Hi,

I have a client who would like to leverage the address + bulleted list for their professionals but they are VERY big on visible facets and filters on the left side of the vertical page. I know as of April this year (when I last asked a question here) that in order to leverage the address field we had to use the professional-location card but has there been any workarounds since then to do so in the professional-standard card?

Hey Sarah,

I’d recommend starting with the professional-location card (since it has built-in formatting to handle addresses) and then adding a bulleted list to that. You can follow along with this example of adding a secondary bulleted list to a card layout (except you’re adding a first). You can take a look at the menuitem-standard card to see what the bulleted list should look like.

Let us know if you have any questions as you work through this!

Hi Kristy,

Thank you so much for the quick response! Our main concern is the facets since with the location card they won’t be visible. This is why I was wondering if we can add addresses to the professional-standard card :slight_smile: