Forum Discussion
I would convert the formula url to a formula rich text and do the following:
"<a class='Vibrant Success OpenAsPopup' data-height=950 data-width=500 data-refresh=true href=\""& $url &"\" >Button Label</a>"
This will run your url and open whatever link you're targeting and then when you close the popup it will refresh the page for you.
------------------------------
Chayce Duncan
------------------------------
- AaronB2 years agoQrew Trainee
Chayce,
I tried your solution but am getting the dreaded "404 Error, Page Unrecognized" popup when I hit the button. I must not be integrating your solution correctly. Here is my code for the formula rich text (button).
---------------------------------------------------------------------------
var text SplashPage = URLRoot() & "db/" & Dbid() & "?a=dbpage&pageID=12";
var text URL = URLRoot() & "db" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_7="& Now() & "&rdr=" & URLEncode($SplashPage);"<a class='Vibrant Success OpenAsPopup' data-height=950 data-width=500 data-refresh=true href=\""& $URL &"\" >Hit Me</a>"
------------------------------
Aaron B
ab1692@att.com
------------------------------- ChayceDuncan2 years agoQrew Captain
That might be my fault, I must have copied something incorrectly as it's co-mingling ' and ".
Try it again as
var text SplashPage = URLRoot() & "db/" & Dbid() & "?a=dbpage&pageID=12";
var text URL = URLRoot() & "db" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_7="& Now() & "&rdr=" & URLEncode($SplashPage);"<a class='Vibrant Success OpenAsPopup' data-height=950 data-width=500 data-refresh=true href='"& $URL &"' >Hit Me</a>"
*the only change was to replace \" with ' around the $URL variable.
------------------------------
Chayce Duncan
------------------------------- ChayceDuncan2 years agoQrew Captain
Nevermind, I checked again and the issue is with your splash page reference. You need to swap out DBID() with AppID() as dbpages are at the application level, not table DBID level
var text SplashPage = URLRoot() & "db/" & AppId() & "?a=dbpage&pageID=12";
------------------------------
Chayce Duncan
------------------------------