Skip to main content
Question

URL Button to check a checkbox and initiate outlook for email

  • April 28, 2020
  • 0 replies
  • 52 views

Hi,
I'm trying to create a button that will check a checkbox and then open outlook and populate the recipients, subject line and body. I copied one of kirks buttons to check the checkbox and have made buttons to initiate outlook before, but cant seem to get them to do both in one button. Below is my formula:

var text url =
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken= apptoken " &
"&_fid_415=1";

"mailto:"&""&[Recipient 1]&";"&[Recipient 2]&"\n"&"?subject="&"\n"&[Subject]&""&"&body="&[Body]&""
&
"javascript:" & "$.get('" & $url & "', function(){" & "location.reload();" &
"});" & "void(0);"

------------------------------
Chris
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+22
  • Quickbase Alumni
  • April 28, 2020
I suggest this Syntax

var text url =
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken= apptoken " &
"&_fid_415=1";

var text MailTo = "mailto:"&""&[Recipient 1]&";"&[Recipient 2]&"\n"&"?subject="&"\n"&[Subject]&""&"&body="&[Body]&"";

&URL
& "&rdr=" & URLEncode($MailTo)

------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------