change multiple fields with one button
so I need to make my cancel button change one field to "Cancelled" (which it is doing) but now I need to get another field (fid 65) to change to "Closed" and I have tried to simply add on the field ID 65 but that hasn't worked out so well as I get an error.
here is my full code w/o my app ID tho
var text RID = If([Record ID#] > 0, ToText([Record ID#]), "%%rid%%");
var text Edit = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&rid=" & $RID & "&apptoken=missed one &_fid_79=" & URLEncode("Cancelled") &
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&rid=" & $RID & "&apptoken=missed one &_fid_65=" & URLEncode("Closed");
var text DisplayURLMissingRID = URLRoot() & "db/" & Dbid() & "?a=dr&rid=";
var text URL = $Edit
& "&rdr=" & URLEncode($DisplayURLMissingRID) & $RID;
"<a class='SaveBeforeNavigating' data-replaceRid=true style=\"text-decoration:none; background: #000000; border-radius: 10px; color: #ffffff; display: inline-block; padding: 5px 5px 5px 5px; width:200px; text-align: center; text-shadow: none; border: 2px solid #000000; font-size: 12px \"href='"
& $URL
& "'>Cancel</a>"
this is the error that I get:
so while I would guess that this change is wrong (obviously), but the ask is possible, just went down the wrong road.
thank you for your help!
------------------------------
Michelle Craig
------------------------------