var text sendWithSurvey =
URLRoot() & "db/" & [_DBID_KB_EXAMPLES] &"?act=API_EditRecord&rid="&URLEncode ([Record ID#])
& "&_fid_49=1"
& "&_fid_53=1"
&"&apptoken=YOUR APP TOKEN";
var text sendWithoutSurvey =
URLRoot() & "db/" & [_DBID_KB_EXAMPLES] &"?act=API_EditRecord&rid="&URLEncode ([Record ID#])
& "&_fid_49=1"
& "&_fid_53=0"
&"&apptoken=YOUR APP TOKEN";
var text rdr = URLRoot() & "/db/" & [_DBID_KB_EXAMPLES] &"?a=dr&rid="&URLEncode ([Record ID#]);
"<a style='width: 150px;border-color:black; text-decoration: none; background:#3761a2;color:white;' class='btn btn-sm btn-primary' href='#'" &
"onclick= \"return confirm('Would you like to have a survey sent? If Yes - click Submit, else Cancel to omit a Survey link from being sent')" &
"?window.location.replace('" & $sendWithSurvey & "&rdr=" & URLEncode($rdr) & "'):" &
"window.location.replace('" & $sendWithoutSurvey & "&rdr=" & URLEncode($rdr) & "');\"" &
">COMPLETE</a>"