Forum Discussion
QuickBaseJunkie
Qrew Legend
7 years agoTo redirect to another page, replace what you currently have at the bottom of your code for <input...> with the following and update to where in your app you'd like to redirect the user.
When submitting a form you will only be able to redirect to another page in your app. What I've done in the past is create another code page with a single button that will link to where I need them to go outside the app. Here is the code from my code page:
<input type=hidden name=rdr value='https://yourcompany.quickbase.com/db/yourtableid?a=dbpage&pageID=3'>
;
<input type=submit style="font-face: 'Helvetica'; font-size: 24pt; color: white; background-color: #C21734; border: 3px" value="Save">
When submitting a form you will only be able to redirect to another page in your app. What I've done in the past is create another code page with a single button that will link to where I need them to go outside the app. Here is the code from my code page:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base target="_parent">
<style>
.button {
width: 50%;
font-size: 18px;
line-height: 1.6;
margin: 0 auto;
text-decoration: none;
text-align: center;
padding: 0.9rem 1.1rem;
border-radius: 2px;
border: 2px solid #FFA6B6;
background-color: white;
color: #FFA6B6;
font-family: Arial;
font-weight: 300;
}
.sub-heading{
font-size: 20px;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
color: white;
text-align: center;
line-height: 1.6;
}
</style>
</head>
<body>
<p></p>
<p></p>
<p></p>
<div class="sub-heading">Thank You!</div><br>
<a href="https://www.quickbasejunkie.com/blog"; style="margin:auto; text-align:center; display:block;" class="button">Please Click Here</a>
</body>
</html>
RobIV
7 years agoQrew Cadet
I wonder if an html redirect would work in your code page? What happens if you place the following in the head of your example:
(<head>)
<meta http-equiv="refresh" content="0; URL=
(</head>)
It might remove the need for a user to click a button if it works.
For more see --> https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections#HTML_redirections#HTML_redirections
Thanks,
~Rob
(<head>)
<meta http-equiv="refresh" content="0; URL=
http://www.google.com/"
; />(</head>)
It might remove the need for a user to click a button if it works.
For more see --> https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections#HTML_redirections#HTML_redirections
Thanks,
~Rob