Below are three buttons.
The first button will check the field 'Project Complete' and redirect back to this record using the following code
var text URL=URLRoot() & "db/" & Dbid() & "?act=API_EditRecord"& "&rid=" & URLEncode ([Record ID#])& "&_fid_36=1" & "&apptoken=" & "enter you app token here";
"javascript:" &"$.get('" & $URL & "',function(){" &"location.reload(true);" &"});" & "void(0);"
|
The scond button will take the same action as the above, but will also include a pop-up box alerting you that the project has been marked complete using the following code:
var text URL=URLRoot() & "db/" & Dbid() & "?act=API_EditRecord"& "&rid=" & URLEncode ([Record ID#])& "&_fid_36=1" & "&apptoken=" & "enter you app token here";
"javascript:" &"$.get('" & $URL & "',function(){" &"location.reload(true);" &"});" & "void(0);alert('Project Complete');"
|
The third and final button can be used to uncheck the 'Project Complete' field and reset the record to continue testing.