Customise PreSubmit for Okta Hosted Page Sign Up

I have added a custom attribute - IsPosted (boolean) for user profile

I would like to capture user input for this option but when I added it to Profile Enrolment, it is showing as a input text field.
image

Are we able to set the attribute thru hooks? I tried something like this but no effect.

        oktaSignIn.on('preSubmit', function (postData, onSuccess) {
            postData.userProfile.IsPosted= true;
            onSuccess(postData);
        });

Any nice workaround would be good too. Thank you in advance. :slight_smile:

Hello,

When you created this attribute in the Universal Directory for the user profile are you sure it was created as a boolean?

If so when adding it as an option in profile enrollment you should see an option to add it as a radio button or checkbox.

Thank You.

Hi @erik, I am not seeing the same screen as you do. Could you advice is it due to some feature not enabled?

Profile Variable

Enrolment Settings

Enrolment Settings - Edit Rule
image

Sign Up Widget
image

If when you navigate to Security > Profile Enrollment and you edit a policy it doesn’t look like the below, I suggest opening a case with support and ask them to check the features set for your Okta Org.

1 Like

Thanks. Able to see the new form after PS team have enabled the features from backend.

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