CMS Development

LSeth
Member | Platinum Partner
Member | Platinum Partner

Using Radio for Choice Custom Field

SOLVE

For some reason I can not get the choices to show as radio instead of select. Below is the code I am using.  I am curious as what I am missing. Thanks.

 

{% choice "hex_right_left" label="Hex - Left or Right", display="radio" default="hex-right" choices=[["hex-left", "Hexagon Left" ], [ "hex-right", "Hexagon Right"]] %}

0 Upvotes
1 Accepted solution
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Using Radio for Choice Custom Field

SOLVE

@LSeth according to the docs the choice tag doesn't have an option for displaying as radio buttons. I think you might be getting the tag confused with a choice field inside of a custom module.

 

Docs for the choice tag: https://developers.hubspot.com/docs/cms/hubl/tags#choice

Docs for the choice custom module field: https://developers.hubspot.com/en/docs/cms/building-blocks/module-theme-fields#choice 

Stefen Phelps, Community Champion, Kelp Web Developer

View solution in original post

3 Replies 3
LSeth
Member | Platinum Partner
Member | Platinum Partner

Using Radio for Choice Custom Field

SOLVE

@stefen Ah yeah that's what I was doing. I figured the settings were the same. Thanks.

@webdew Thanks for the input but in this situation I am not using a module I am using the choice tag.

webdew
Guide | Diamond Partner
Guide | Diamond Partner

Using Radio for Choice Custom Field

SOLVE

Hi @LSeth ,

In Your choice field select display as radio then it will show your choice item as a radio type 

webdew_0-1644486064027.png

 

Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.

0 Upvotes
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Using Radio for Choice Custom Field

SOLVE

@LSeth according to the docs the choice tag doesn't have an option for displaying as radio buttons. I think you might be getting the tag confused with a choice field inside of a custom module.

 

Docs for the choice tag: https://developers.hubspot.com/docs/cms/hubl/tags#choice

Docs for the choice custom module field: https://developers.hubspot.com/en/docs/cms/building-blocks/module-theme-fields#choice 

Stefen Phelps, Community Champion, Kelp Web Developer