Skip to main content
Question

Rich Text Button - Not saving record edits

  • March 18, 2021
  • 0 replies
  • 119 views

LizChartrand
Forum|alt.badge.img+6
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
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
To try to get this debugged, what happens if you make a URL formula field that just does this



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#])

------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------