Forum Discussion
MCFNeil
8 years agoQrew Captain
Sorry for the confusion.
Your current href is designed to refresh the page, correct? (window.location .... void)
you will replace all of that with the simple href="'& $URL &'" target='_blank'
So it will preform your edit, but then open the rdr in a new tab.
"<a class=\"Vibrant Primary\"
href='" & $url & "&rdr=" & URLEncode($rdr) & "' target='_blank'
>Receive Exchange</a>
Your current href is designed to refresh the page, correct? (window.location .... void)
you will replace all of that with the simple href="'& $URL &'" target='_blank'
So it will preform your edit, but then open the rdr in a new tab.
"<a class=\"Vibrant Primary\"
href='" & $url & "&rdr=" & URLEncode($rdr) & "' target='_blank'
>Receive Exchange</a>
MCFNeil
8 years agoQrew Captain
For that you will want to use the 'linkaway' href call.
This is straight out of a template application:
// This works because you have turned on the table's advance settings, "Save parent record automatically when a child record is created."
href='javascript:LinkAway(\"" &$url & "&rdr=" & URLEncode($rdr) & "\");' target='_blank'
This is straight out of a template application:
"<a class='Vibrant Success' href='javascript:LinkAway(\"" & URLRoot() & "db/" & Dbid() & "?a=dbpage&pagename=success.html" & "\");' >Submit and redirect</a>"
// This works because you have turned on the table's advance settings, "Save parent record automatically when a child record is created."
yours will look like
href='javascript:LinkAway(\"" &$url & "&rdr=" & URLEncode($rdr) & "\");' target='_blank'