PaulPeterson1
5 years agoQrew Assistant Captain
Saving after checkbox updated
I have a button that will check or uncheck a checkbox and redirects back to the original view. I want to save before the redirect using
Where would I add that in the code below?
------------------------------
Paul Peterson
------------------------------
"javascript:DoSaveAdd()"
Where would I add that in the code below?
var text urlyes = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=cgywnw8dk9cp2pciq46fd6hn9j3&rid=" & [Record ID#] & "&_fid_3134=1"; var text urlno = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=cgywnw8dk9cp2pciq46fd6hn9j3&rid=" & [Record ID#] & "&_fid_3134=0"; If(not [Submit All], "<a class=\"Vibrant Secondary\" style=\"width:200px; text-align: center; color: #fff;\" href=\"javascript:" & "$.get('" & $urlyes & "',function(){" & "location.reload();" & "});" & "void(0);\">MS Not All Services Submitted</a>", "<a class=\"Vibrant Success\" style=\"width:200px; text-align: center; color: #fff;\" href=\"javascript:" & "$.get('" & $urlno & "',function(){" & "location.reload();" & "});" & "void(0);\">MS All Services Submitted</a>")
------------------------------
Paul Peterson
------------------------------