ChrisMolkenbuhr
6 years agoQrew Trainee
URL Button to check a checkbox and initiate outlook for email
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
------------------------------
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
------------------------------