CMS Development

Shivasagar
Member

Custom Module Tag Fields

Hi Team,

 

I'm working with custom Modules tag fields, here we have option to choice tag ID or Name. Once we select Name its get value as show in attachment where we have '-'. Can i get that Tag Label From Tag Id or Name In Custom Module.

 

 

Capture.PNG

0 Upvotes
1 Reply 1
alyssamwilie
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Custom Module Tag Fields

@Shivasagar 

 

Don't think you can get the label, but a workaround would be to just remove the - and make it titlecase using Hubl.

 

{{ module.tag_field|replace('-',' ')|title }} 

 

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.