I'm crazy busy now and don't have time to help, but maybe you can help me.
This code is from an app I worked on, but did not write. It seemed to work. I just grabbed the code and saved it and the format I have is unreadable BecauseItIsJustOneLongString. Those single quotes always mess me up so we need to dumb this down.
"<a class='Vibrant Danger' href='" & Dbid() & "?a=API_EditRecord&rid=" & [Patient ID#] & "&apptoken=b3ya2etdy9kh2hdshehaabdzyq6e&_fid_252=Failed - Kick Back to CC&_fid_243=Level 0 - Call Center&_fid_247=Missing Patient Information&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Patient ID#]) & "'>Kick Back Missing Patient Info</a>"
I would love it if you tidied it up so that the formula URL part with the redirects where in a nice clean formula variable, which then can be used in a Vibrant button.
Then post back your working tidy formula for the Community.