How to option lock option checkbox as radio button

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,

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);
    },
  },
];

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).

If you need to use radio buttons, you can host a login page and customize it. You can find more details about it here

Thanks for your help @dawid.matuszczyk :slightly_smiling_face:

1 Like

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

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