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
------------------------------
- ScottWilliams10 months agoQrew Member
Thank you! That works great.
------------------------------
Scott
------------------------------
Related Content
- 4 days agoAmberGoodman
- 10 days agoDawnRene3
- 8 days agoTonyGonzalez
- 22 days agoShawnSchrotber1