You are viewing limited content. For full access, please sign in.

Question

Question

Weblink Login Customize 'User Name' text

asked on March 28, 2019 Show version history

Good Morning,

 

I am trying to see if is possible to change the text for 'User Name' in the login box.  We are currently using WebLink 10.

 

This is the field specifically.

 

I have inspected the elements and I see what I would like to change.

 

So far, I have checked Weblink Designer, Login.aspx, Login.aspx.vb, Welcome.aspx,  WebLinkSyles.css, and styles.css.  The closest thing I have come up with is this block from Login.aspx.

 

I see the classes defined in the .css files for .LoginBox and .LoginSquare but that doesn't seem to have what I am looking for either.

 

Any ideas for where this is set?  I feel like I must be missing something pretty obvious.

 

Thanks!

 

 

 

0 0

Replies

replied on March 28, 2019

I think the strings for TheLoginInterface are loaded from somewhere you cannot edit. As recommended in an earlier post about text replacement in WebLink, one solution is to replace it using Javascript.

You can insert custom Javascript into the area above the closing body tag, </body>, in the Login.aspx file.

This worked for me:

<script type="text/javascript">
  var str = document.getElementById("TheLoginInterface").innerHTML; 
  var res = str.replace(/user name/i, "Your Replacement Words");
  document.getElementById("TheLoginInterface").innerHTML = res;
</script>

It looks for the "TheLoginInterface" element, then searches within that section for the string "user name" (case-insensitively, indicated by the /i ) and replaces the first instance it finds with "Your Replacement Words".

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.