# How to option lock option checkbox as radio button

**URL:** <https://community.auth0.com/t/how-to-option-lock-option-checkbox-as-radio-button/106632>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [May 10, 2023, 2:10pm UTC](https://community.auth0.com/t/how-to-option-lock-option-checkbox-as-radio-button/106632 "2023-05-10T14:10:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sriramraja.k](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sriramraja.k](https://community.auth0.com/u/sriramraja.k)\
**Post date:** [May 10, 2023, 2:10pm UTC](https://community.auth0.com/t/how-to-option-lock-option-checkbox-as-radio-button/106632/1 "2023-05-10T14:10:34Z")

</div>

Hi Dear,

I am attempt to add additional field while signup, I go through the lock options, There is no radio buttuon option, So i used a checkbox on validator i try to disable if both box checked ,

Now my question is how to acces the 1st checkbox value in 2nd checkbox as the below code,

```javascript
additionalSignUpFields: [
  {
    type: "checkbox",
    name: "recruiter",
    prefill: false,
    placeholder: "I am a recruiter!",
    validator: function (checkboxValue) {
      console.log("We are in recruite");
      console.log(checkboxValue);
    },
  },
  {
    type: "checkbox",
    name: "candidate",
    prefill: false,
    placeholder: "I am a candidate!",
    validator: function (checkboxValue, additionalSignUpFields) {
      console.log(additionalSignUpFields);
    },
  },
];

```

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [May 23, 2023, 6:37pm UTC](https://community.auth0.com/t/how-to-option-lock-option-checkbox-as-radio-button/106632/5 "2023-05-23T18:37:54Z")

</div>

Hi @sriramraja.k

Welcome to the Auth0 Community!

Based on the code example that you provided, it looks like your users need to determine a boolean value between two states → recruiter and candidate. For that purpose, I would recommend switching from checkboxes to select fields ([Select fields](https://auth0.com/docs/libraries/lock/lock-configuration#select-field)).

If you need to use radio buttons, you can host a login page and customize it. You can find more details about it [here](https://community.auth0.com/t/how-do-i-implement-a-custom-ui-login-instead-of-using-lock/19693)

---

<div class="post-metadata">

**Author:** ![sriramraja.k](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sriramraja.k](https://community.auth0.com/u/sriramraja.k)\
**Post date:** [May 24, 2023, 4:24am UTC](https://community.auth0.com/t/how-to-option-lock-option-checkbox-as-radio-button/106632/6 "2023-05-24T04:24:32Z")

</div>

Thanks for your help @dawid.matuszczyk 🙂

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [May 24, 2023, 8:52am UTC](https://community.auth0.com/t/how-to-option-lock-option-checkbox-as-radio-button/106632/7 "2023-05-24T08:52:42Z")

</div>

I’m glad I could help! Have a great day.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 7, 2023, 8:53am UTC](https://community.auth0.com/t/how-to-option-lock-option-checkbox-as-radio-button/106632/8 "2023-06-07T08:53:20Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
