Forum Discussion
I use something like this for a Rich Text Button, but you can adapt it for a Formula URL field too.
var text returnURL = URLRoot()&"db/"&[TABLE_ID]&"?a=er&apptoken=xxxxx&rid=" & [Record ID#];
var text url = URLRoot() & "db/" & [TABLE_ID] & "?a=API_AddRecord&apptoken=xxxxx&rid="&[Related Record]& "&rdr=" & URLEncode($returnURL);
var text buttonText = "What the Button Says";
"<a class='SaveBeforeNavigating' style='"& [Orange Button] & "' href='" & $URL & "'>" & $buttonText & "</a>"
Hello,
Thanks for replying and sorry for the delayed response. I can't put this in a button on a dashboard though, right? When I select a button bar, I only see URL as the appropriate option. Nothing else is for a formula. I did use a formula rich text button from a different table to generate the desired URL, so I could copy and paste it into the dashboard button, the URL doesn't produce the desired result.
- MarkShnier__You6 months ago
Qrew Legend
James,
Can you your current formula for the button you say that works, also explain the business purpose of what the button is supposed to do?