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

Question

Question

Customize Weblink errors

asked on March 18, 2014

Is there a way we can adjust or add to errors returned by Weblink 8.x? Main concern is "The maximum number of sessions has been reached." error that can occur when logging in. Looking to add some info/instructions to it.

 

0 0

Answer

SELECTED ANSWER
replied on April 8, 2014

Here is a quick and dirty way to do this. Make sure you place this code right above the </body> tag in the "Login.aspx" file. You can customize this to suite your needs.

 

<script language="Javascript">
var t = document.getElementsByClassName("LoginError");
var c = t[0].innerHTML;
if (c.match("The maximum number of sessions has been reached.")) {

//add to existing matched error message

t[0].innerHTML += "&lt;p&gt;Please try your request later or contact us at (000)000-0000. We apologize for any inconvience this may have caused.&lt;/p&gt;";

//replace existing matched error message
//t[0].innerHTML = "The maximum number of Laserfiche licenses has been reached. Please try your request again in 5 minutes. If the problem persists please contact support at (000)000-0000";
}
</script>

 

1 0
replied on April 8, 2014

Just tested it out. Works well. Thanks Wes!

0 0

Replies

replied on March 19, 2014

These messages come from the Laserfiche Server, and at the moment they are not customizable. We do have plans to look into that functionality, but it requires some other changes so we don't have a timeframe for it.

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

Sign in to reply to this post.