Forum Discussion
Your button is simply making an API call it seems and then reloading the page. The assumption I'm making is that 'Add Blood Collection Kit' is a URL hitting something in QB. If it's hitting an external endpoint or something more complicated you'll need to employ a code page solution.
If this is a QB API call for Add block collection kit - you can do something like this:
var url = [Add Blood Collection Kit] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=DoRedirect&z=" & Rurl());
"<div style=\" position:relative; width:960px; padding: 2px 0; height: auto; \">" &
"<a " & $style & " href='" & $url "' & "void(0);\">Blood Collection Kit</a>" &
"</div>"
The doredirect is how QB will hit its own API and then simply land you back on the page you came from.
------------------------------
Chayce Duncan
------------------------------
- ScottWilliams2 years agoQrew Member
Thank you! That works great.
------------------------------
Scott
------------------------------
Related Content
- 3 months ago
- 6 months ago
- 3 months ago
- 3 months ago
- 4 months ago