CMS Development

LSeth
Membre | Partenaire solutions Platinum
Membre | Partenaire solutions Platinum

Using Radio for Choice Custom Field

Résolue

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 Votes
1 Solution acceptée
stefen
Solution
Conseiller clé | Partenaire solutions
Conseiller clé | Partenaire solutions

Using Radio for Choice Custom Field

Résolue

@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

Voir la solution dans l'envoi d'origine

3 Réponses
LSeth
Membre | Partenaire solutions Platinum
Membre | Partenaire solutions Platinum

Using Radio for Choice Custom Field

Résolue

@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 | Partenaire solutions Diamond
Guide | Partenaire solutions Diamond

Using Radio for Choice Custom Field

Résolue

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 Votes
stefen
Solution
Conseiller clé | Partenaire solutions
Conseiller clé | Partenaire solutions

Using Radio for Choice Custom Field

Résolue

@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