Knowledge Base

Our Knowledge Base covers a wide variety of technical topics, from the basic to the complex.

How do I create a custom log-in page, so that users are sent directly to an app "Home Page" I have designed rather than the "My Apps" page?

Additionally, how can I deal with users who enter an incorrect user name and/or password via the custom log-in page? And by the way can you make it work without the custom error page and without JavaScript errors on all other browsers?

This technique will only work if the page is hosted as a text page in a separate QuickBase application. Of course this application that hosts the page will have to have view access for the group "Everyone on the Internet".

On FireFox and IE, the following HTML will present a simple UI for logging into QuickBase.

You can try it by clicking on the attached link at the bottom of this article.

Upon successful login by the user, they will be re-directed to a page of your choosing. In the example below, a user is re-directed to http://www.example.com/custompage.html but you can replace the occurrence of this URL with any URL you choose.

<html>
<head>
<title>Custom Login Page for QuickBase</title>

<script lang="javascript" src="/db/6mztyxu8?a=dbpage&pagename=QuickBaseClient.js"></script>
<script lang="javascript">
function login()
{
var qdb = new QuickBaseClient();
qdb.Authenticate(document.getElementById('qdbusername').value, document.getElementById('qdbpassword').value);
qdb.GetTicket();
if(qdb.displayErrorAlert("Sorry we could not log you in. Check your username and password and please try again. "))
{
return(false);
}
window.location.href = "http://www.example.com/custompage.html";
return(true);
}
</script>
</head>
<body>
Username: <input type="text" name="username" id="qdbusername"><br>
Password: <input type="password" name="password" id="qdbpassword"><br>
<input type="submit" value="Login" onclick="login()">
</body>
</html>

Attachment: https://www.quickbase.com/up/6mztyxu8/g/rbz/en/va/QuickBaseCustomLogin.html

Comments

Any way to allow for the "keep me signed into QB" functionality

Thanks for this article.  Is there anyway to incorporate the "Keep me signed into QB" checkbox on a custom form like this?

Thx!

view access

how do I set the view access to "Everyone on the Internet" for a quickbase application?

Post new comment

The content of this field is kept private and will not be shown publicly.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.

© 1997-2014 Intuit Inc. All Rights Reserved.

Online Database VeriSign Secured Web Based Software TRUSTe Certification Online Database SSAE Audit