Lock Configuration Options - Radio Buttons

I am sorry if this has been asked before, but on our Universal Login, I am looking to implement some preferences that would be best suited to radio buttons. I am having a really hard time finding any documentation on this, though.

Basically, it would look like this:

{
    type: "checkbox",
    name: "option_A",
    prefill: "false",
    placeholder: "I would like to receive all updates",
},
{
    type: "checkbox",
    name: "option_B",
    prefill: "false",
    placeholder: "I would like to receive some updates",
},
{
    type: "checkbox",
    name: "option_C",
    prefill: "false",
    placeholder: "I would like to receive no updates",
}

Obviously, in the example, I have added checkboxes per the documentation here: Lock Configuration Options

I have noticed that there are styles for radio input types -
Screen Shot 2021-09-08 at 9.40.49 AM

However, if I change the type to “radio”, all I get is the box with the prefill -

Is it possible to set up a group of radio buttons? What am I missing?

Thanks in advance!

Hi @KJHeartbreaker,

Welcome to the Auth0 Community!

It doesn’t look radio buttons is an option. For reference:

It seems like the best option would be a select field.

https://auth0.com/docs/libraries/lock/lock-configuration#select-field

Awesome! We’ll give that a go, and thanks a bunch!

1 Like

No problem, let us know how it goes.

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