Strange Problem with Button to mark check box
I've used this same concept in multiple places and they work correctly. I have a couple of apps, and the current app is giving me a strange error message. I'm hoping someone can give me advice on handling this.
Code from Button:
var text url = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=d7s84zwcx5qf79csb72q6wrdjkd" &
"&_fid_20=1" &
"&rdr=" & //redirect parameter
//URLEncode("https://exteriorsutah.quickbase.com/db/bug9w4puk"); URL meaning
URLEncode(URLRoot()&"db/"&"bug9w4puk"&"?a=er&rid=" & [Related Invoice Header]); // Takes them to the invoice header in view mode, dr is view mode er is edit mode
"<a class='Vibrant Primary' style=\"width:160px; text-align: center;\" href='" & $url & "'>Select for Pay</a>"
Error code being received:
<qdbapi>
<errtext>Invalid request - we cannot understand the URL you specified.</errtext>
<errcode>102</errcode>
<errdetails>ac0fb69d-e405-9558-bc99-a5a04c6ca98e:</errdetails>
</qdbapi>
Thank you,
Paul Elliott
Exteriors Utah, LLC