LizChartrand
5 years agoQrew Cadet
Rich Text Button - Not saving record edits
Hello,
I'm trying to set up a rich text button that checks a box and records the user who checked it.
However, from the user standpoint, I'd like them to be able to work on other things in the record and have those edits saved if/ when they push the button, and then continue in the edit view of the record.
In other words, I'd like a user to be able to
1) edit any fields on a record
2) Click the button to check a box and save any edits they've made to the record
3) continue in the edit record view.
Currently, that's not working.
Here's what I have so far:
var text URL =
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord" &
"&rid=" & [Record ID#]
& "&apptoken=##########################"
& "&_fid_2058=" & URLEncode(UserToName(User()))
& "&_fid_2057=true"
& "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#]);
If([Confirm Additional Agent info]=true,
"<a class='Vibrant' style='border:1px solid #f6f2ef; background-color:#f6f2ef'>Additional Agent Info Confirmed</a>",
"<a class='Vibrant Danger' style='border:1px solid #6BBD57; background-color:#6BBD57'" & "a href=" & $URL & "> Click Here if Additional Agent Info is Complete</a>")
---
I confirmed that I have the "Save parent when child record is added" setting checked for this table.
Any suggestions about why this isn't saving the record after executing the tasks noted in the field?
------------------------------
Liz Chartrand
------------------------------
I'm trying to set up a rich text button that checks a box and records the user who checked it.
However, from the user standpoint, I'd like them to be able to work on other things in the record and have those edits saved if/ when they push the button, and then continue in the edit view of the record.
In other words, I'd like a user to be able to
1) edit any fields on a record
2) Click the button to check a box and save any edits they've made to the record
3) continue in the edit record view.
Currently, that's not working.
Here's what I have so far:
var text URL =
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord" &
"&rid=" & [Record ID#]
& "&apptoken=##########################"
& "&_fid_2058=" & URLEncode(UserToName(User()))
& "&_fid_2057=true"
& "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#]);
If([Confirm Additional Agent info]=true,
"<a class='Vibrant' style='border:1px solid #f6f2ef; background-color:#f6f2ef'>Additional Agent Info Confirmed</a>",
"<a class='Vibrant Danger' style='border:1px solid #6BBD57; background-color:#6BBD57'" & "a href=" & $URL & "> Click Here if Additional Agent Info is Complete</a>")
---
I confirmed that I have the "Save parent when child record is added" setting checked for this table.
Any suggestions about why this isn't saving the record after executing the tasks noted in the field?
------------------------------
Liz Chartrand
------------------------------