# How to populate a form radio field from WooCommerce attributes

**URL:** <https://forum.bricksbuilder.io/t/how-to-populate-a-form-radio-field-from-woocommerce-attributes/21778>\
**Category:** How To\
**Tags:** templates\
**Created:** [April 10, 2024, 8:39pm UTC](https://forum.bricksbuilder.io/t/how-to-populate-a-form-radio-field-from-woocommerce-attributes/21778 "2024-04-10T20:39:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GinaC](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/ginac/32/18849_2.png) [@GinaC](https://forum.bricksbuilder.io/u/GinaC)\
**Post date:** [April 10, 2024, 8:39pm UTC](https://forum.bricksbuilder.io/t/how-to-populate-a-form-radio-field-from-woocommerce-attributes/21778/1 "2024-04-10T20:39:18Z")

</div>

Hi everyone,

I have an issue that bothers me for 2 days and I can’t get it, so I need your help.

I have a pop-up with a form in the Single Product template. The form must have radio fields populated by variable product attributes.

If I put on Options { pa\_size } dynamic data, I get only one radio button with all term atrributes as values.

I made a custom function placed in function.php to get an array of terms without links. If I place the function in a code element (Signed), I can see the array with var\_dump.

If I put it in the radio Options as { echo:function\_name } it does nothing. Here I can’t sign the code.

 ![pop-up screenshot](https://forum.bricksbuilder.io/uploads/default/original/3X/e/b/eb42c9439d4c9a5e889f9e9346400e3d3df7a2fd.jpeg)

The function appears as signed in Bricks settings. Please help.
