# Field not defined in logic rule for load event at runtime

**URL:** <https://community.feathery.io/t/field-not-defined-in-logic-rule-for-load-event-at-runtime/486>\
**Category:** Support\
**Created:** [February 13, 2024, 9:01am UTC](https://community.feathery.io/t/field-not-defined-in-logic-rule-for-load-event-at-runtime/486 "2024-02-13T09:01:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marko](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@marko](https://community.feathery.io/u/marko)\
**Post date:** [February 13, 2024, 9:01am UTC](https://community.feathery.io/t/field-not-defined-in-logic-rule-for-load-event-at-runtime/486/1 "2024-02-13T09:01:50Z")

</div>

Hello,

I have a form step which contains a radio button group that I would like to programmatically assign values in a logic rule. The issue is that at runtime the field is not defined whether I try to access the field in the visual rule builder or the advanced logic rule builder. At design time the field is available in both rule builders.

The following displays the step, the visual rule builder and the error that occurs when previewing a draft of the form:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/feathery/original/1X/d26166377a027e042ce6ff2399b75d7581fb84bf.png)

---

<div class="post-metadata">

**Author:** ![summep](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@summep](https://community.feathery.io/u/summep)\
**Post date:** [February 14, 2024, 8:26am UTC](https://community.feathery.io/t/field-not-defined-in-logic-rule-for-load-event-at-runtime/486/2 "2024-02-14T08:26:44Z")

</div>

Hi Mark,

Can you try publishing the form (also if you have changed the radio button group’s ID, please double check the field name is also updated in logic before publishing), and see if the issue persists in the Test Form?

Thank you,  
Summer

---

<div class="post-metadata">

**Author:** ![marko](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@marko](https://community.feathery.io/u/marko)\
**Post date:** [February 14, 2024, 9:03am UTC](https://community.feathery.io/t/field-not-defined-in-logic-rule-for-load-event-at-runtime/486/3 "2024-02-14T09:03:59Z")

</div>

Hi Summer,

Publishing the form and using the Test Form worked! Doesn’t this mean that Preview Draft doesn’t work?

Thank you,  
Mark
