# Two fields when activating a formula

**URL:** <https://community.weweb.io/t/two-fields-when-activating-a-formula/2946>\
**Category:** Ask us anything\
**Created:** [June 5, 2023, 7:00pm UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946 "2023-06-05T19:00:48Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![icos](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/icos/32/4625_2.png) [@icos](https://community.weweb.io/u/icos)\
**Post date:** [June 5, 2023, 7:00pm UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/1 "2023-06-05T19:00:48Z")

</div>

When you activate a formula in Input Select, two fields Lebel field and Value field appear, what is their purpose?  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/c/ca9c19b4fe922c7ce8cb674a385ef42ac97e6d5f.png)

---

<div class="post-metadata">

**Author:** ![icos](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/icos/32/4625_2.png) [@icos](https://community.weweb.io/u/icos)\
**Post date:** [June 6, 2023, 7:55am UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/2 "2023-06-06T07:55:11Z")

</div>

This may be a silly question, but such fields appear in Radio Input. If you select them and reload the page, they are reset to the column with the Primary key. There is no such thing in Input Select.

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [June 6, 2023, 8:38am UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/3 "2023-06-06T08:38:34Z")

</div>

Label and value fields are common among dropdowns/radio/or any HTML input that requires a user to select a value among a list of possible values.

Label is what will be displayed to the user, value is the technical value that the input will store when the user has selected a choice.

---

<div class="post-metadata">

**Author:** ![icos](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/icos/32/4625_2.png) [@icos](https://community.weweb.io/u/icos)\
**Post date:** [June 6, 2023, 9:08am UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/4 "2023-06-06T09:08:40Z")

</div>

[quote=“Quentin, post:3, topic:2946, full:true”] Label and value fields are common among dropdowns/radio/or any HTML input that requires a user to select a value among a list of possible values.

Label is what will be displayed to the user, value is the technical value that the input will store when the user has selected a choice. [/quote]

Got it, thanks.

What could be the reason for resetting the fields in Radio Input after refreshing the page?

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [June 6, 2023, 10:54am UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/5 "2023-06-06T10:54:59Z")

</div>

A field has « no memory » of a previous state. If you want it to be preset with a value, you should use an init value in its config.

---

<div class="post-metadata">

**Author:** ![icos](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/icos/32/4625_2.png) [@icos](https://community.weweb.io/u/icos)\
**Post date:** [June 6, 2023, 12:53pm UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/6 "2023-06-06T12:53:48Z")

</div>

I did as you said, but the reset still happens after refreshing the page.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/5fa0aa4ee5d4b0bd9c926b00234dbe1d20ff6ee4.png)

Maybe this is an internal problem?

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [June 6, 2023, 1:49pm UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/7 "2023-06-06T13:49:05Z")

</div>

The `init value` should be found inside the list of `value` fields you gave to the input (not a `label`). Here it seems you’re using an `id` as a value. Are you using the right variable?

---

<div class="post-metadata">

**Author:** ![icos](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/icos/32/4625_2.png) [@icos](https://community.weweb.io/u/icos)\
**Post date:** [June 6, 2023, 2:15pm UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/8 "2023-06-06T14:15:33Z")

</div>

This happens after refreshing the page.

And below is a screenshot of how I originally set it up.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/753a478594b5ed8cb3979ad74744dd4fd38673bf.png)

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [June 6, 2023, 2:18pm UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/9 "2023-06-06T14:18:05Z")

</div>

Is the input inside a modal or popup?

---

<div class="post-metadata">

**Author:** ![icos](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/icos/32/4625_2.png) [@icos](https://community.weweb.io/u/icos)\
**Post date:** [June 6, 2023, 3:23pm UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/10 "2023-06-06T15:23:28Z")

</div>

No.

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [June 7, 2023, 9:18am UTC](https://community.weweb.io/t/two-fields-when-activating-a-formula/2946/11 "2023-06-07T09:18:20Z")

</div>

Ok, then, that’s weird. Please file a bug on [support.weweb.io](http://support.weweb.io) as it seems to be an error on our side (sorry for this 🙏 )
