Calling transformUsername() from Hosted Widget

Hello,

I’m trying to setup a function to handle transformUsername() using the Hosted Sign-In widget (i.e.: writing the function within the Okta Customization HTML editor). I’m not having much luck however – if you’ve done this before, can you advise where and how to place a transformUsername function into the hosted HTML sections?

Thanks.

Of course, this was trivial … just FYI:

  config.transformUsername = function(username,operation) {
              partner = document.getElementById("okta-signin-partner").value;
              value = partner + username;     
              return value
          }

Where partner is a new form field I introduce (see my other post re: calling afterRender to modify the GUI to add a second username input field).

Hi I am in a similar situation, I believe the above block of code goes before the line
var oktaSignIn = new OktaSignIn(config);
Yet It does not seem to be processing, Am I missing something here

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