JackWoods
5 years agoQrew Trainee
Kirk Magic Buttons - Close/Complete A Task Button
I've been working with Kirks magic Buttons and want to use the Complete Task Button. The button should ask if you're sure and then change the status and change the actual finish date to today. The actions seems to be working on the record but when I press the button it sends me to an error page and tells me nothing was changed (Even though it was). Please review the code below and help me with the errors. Attached is the error screen I get.
"javascript:if(confirm ('Are You Sure You Want To Close This Task?')){location.assign('/db/" & Dbid() & "?act=API_EditRecord&apptoken=bufgudqbtmxg26x78tdv7966f3&rid=" & [Task ID] & "&rdr=" &
URLEncode(URLEncode(URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=bufgudqbtmxg26x78tdv7966f3&rid=" & [Task ID] &
"&_fid_12=Completed" &
"&_fid_84=" & URLEncode(Today() &
URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Task ID]& ""))) &"')}")
------------------------------
Jack Woods
------------------------------
"javascript:if(confirm ('Are You Sure You Want To Close This Task?')){location.assign('/db/" & Dbid() & "?act=API_EditRecord&apptoken=bufgudqbtmxg26x78tdv7966f3&rid=" & [Task ID] & "&rdr=" &
URLEncode(URLEncode(URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=bufgudqbtmxg26x78tdv7966f3&rid=" & [Task ID] &
"&_fid_12=Completed" &
"&_fid_84=" & URLEncode(Today() &
URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Task ID]& ""))) &"')}")
------------------------------
Jack Woods
------------------------------