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