# Okta User Self-Registration Question Continued

**URL:** <https://devforum.okta.com/t/okta-user-self-registration-question-continued/11894>\
**Category:** Questions\
**Created:** [November 25, 2020, 11:29pm UTC](https://devforum.okta.com/t/okta-user-self-registration-question-continued/11894 "2020-11-25T23:29:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![eminor](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@eminor](https://devforum.okta.com/u/eminor)\
**Post date:** [November 25, 2020, 11:29pm UTC](https://devforum.okta.com/t/okta-user-self-registration-question-continued/11894/1 "2020-11-25T23:29:12Z")

</div>

This is a follow up question to an earlier post titled “Okta User Self-Registration Question”.

I was able to figure out how to populate a user attribute dropdown field by adding code to the “parseSchema” function of the Registration section of the OktaSignIn widget. I am now able to dynamically populate the field by making a REST/AJAX call to my backend server.

I have just one issue. I need to make the field wider to display more of the selection options. Is there  
a way via the OKTA organization platform to configure the width of a particular User Registration attribute?

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/6/6483cfb2a677c9f2f99521474f8e422829c99019.png)

---

<div class="post-metadata">

**Author:** ![rajnadimpalli](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rajnadimpalli](https://devforum.okta.com/u/rajnadimpalli)\
**Post date:** [November 27, 2020, 8:37am UTC](https://devforum.okta.com/t/okta-user-self-registration-question-continued/11894/2 "2020-11-27T08:37:42Z")

</div>

> [@eminor](#):
>
> arlier post titled “Okta User Self-Registration Question”.
> 
> I was able to figure out how to populate a user attribute dropdown field by adding code to the “parseSchema” function of the Registration section of the OktaSignIn widget. I am now able to dynamically populate the field by making a REST/AJAX call to my backend server.
> 
> I have just one issue. I need to make the field wider to display more of the selection options. Is there  
> a way via the OKTA organization platform to configure the width of a particular User Registration attribute?

Registration form is part of the sign in widget. You can change style using CSS:

> **[Style the sign-in page | Okta Developer](https://developer.okta.com/docs/guides/custom-widget/main/#style-the-okta-hosted-sign-in-widget)**
>
> Secure, scalable, and highly available authentication and user management for any app.

---

<div class="post-metadata">

**Author:** ![naresh.gpai](https://avatars.discourse-cdn.com/v4/letter/n/77aa72/32.png) [@naresh.gpai](https://devforum.okta.com/u/naresh.gpai)\
**Post date:** [February 22, 2022, 1:10pm UTC](https://devforum.okta.com/t/okta-user-self-registration-question-continued/11894/3 "2022-02-22T13:10:58Z")

</div>

Hi eminor, How did you managed to display the select list using “parseSchema”, any documentation link or code snippet.

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [February 24, 2022, 8:51pm UTC](https://devforum.okta.com/t/okta-user-self-registration-question-continued/11894/4 "2022-02-24T20:51:37Z")

</div>

Hello Naresh,

Typically if you want to add a list for self service registration you would create a new attribute in your Okta user schema as a String attribute that enumerates allowed values and is read/write.

 ![user_attr](https://global.discourse-cdn.com/oktadev/original/2X/2/2628d069c8c13097672d2df7106e3703f51d7639.jpeg)

In the self service registration section in your Org add the attribute to the registration form.

 ![ssr2](https://global.discourse-cdn.com/oktadev/original/2X/e/e401ddd1539e9083e0c05d29f8396a6e59a78e3d.jpeg)

This will make it show up in the registration form with all the drop down options. If you need to further modify the list for some reason, change language if the browser is set to another language then you could do that with parseSchema().

```auto
          'parseSchema': (schema, onSuccess, onFailure) => {
            var userLang = navigator.language || navigator.userLanguage;
            if (userLang === 'es') {
              schema.profileSchema.properties.country2.title = "país";
              schema.profileSchema.properties.country2.oneOf[0].title = "Seleccione uno";
              schema.profileSchema.properties.country2.oneOf[1].title = "NOS";
              schema.profileSchema.properties.country2.oneOf[2].title = "ES";
              schema.profileSchema.properties.country2.oneOf[3].title = "VIE";
            }
            onSuccess(schema);
          },

```

 ![ssr3](https://global.discourse-cdn.com/oktadev/original/2X/0/0681c65e898e359aa206d8c18a2a9c599d554616.jpeg)

---

<div class="post-metadata">

**Author:** ![naresh.gpai](https://avatars.discourse-cdn.com/v4/letter/n/77aa72/32.png) [@naresh.gpai](https://devforum.okta.com/u/naresh.gpai)\
**Post date:** [February 28, 2022, 7:14am UTC](https://devforum.okta.com/t/okta-user-self-registration-question-continued/11894/5 "2022-02-28T07:14:19Z")

</div>

Thank you Erik for the detailed explanation. Also is there an option to render a checkbox field in the widget. Below code renders a select list instead of checkbox.

```auto
parseSchema: function (schema, onSuccess) {
    schema.profileSchema.properties.age18Consent = {
      'type': 'boolean',
      'title': 'Im over the age of 18'
    };
},
```

---

<div class="post-metadata">

**Author:** ![rayman](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rayman](https://devforum.okta.com/u/rayman)\
**Post date:** [October 16, 2023, 5:56am UTC](https://devforum.okta.com/t/okta-user-self-registration-question-continued/11894/6 "2023-10-16T05:56:43Z")

</div>

Hi Erik, can I ask you about parseSchema() function? Is it added to configuration object? Can I use it with Okta hosted sign-in page? I’ve tried something like this but cannot get it working:  
config.registration = {  
&nbsp;&nbsp;&nbsp;&nbsp;parseSchema: (schema, onSuccess) =\> {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// handle parseSchema callback  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onSuccess(schema);  
&nbsp;&nbsp;&nbsp;}  
};

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![rayman](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rayman](https://devforum.okta.com/u/rayman)\
**Post date:** [October 16, 2023, 11:49pm UTC](https://devforum.okta.com/t/okta-user-self-registration-question-continued/11894/7 "2023-10-16T23:49:38Z")

</div>

I’ve sorted it out- had an extra bracket in my javascript, and it works as a charm!)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 19, 2024, 1:01am UTC](https://devforum.okta.com/t/okta-user-self-registration-question-continued/11894/8 "2024-01-19T01:01:16Z")

</div>

Closed on January 19, 2024, 1:01am UTC

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