Forum Discussion
Ok, so the button would be like
var text CheckTheBox = URLRoot() & "db/" & dbid()
& "?act=API_EditRecord&rid=" & [Record ID#];
& "&_fid_99=1"
var text DisplayInEditMode = URLRoot() & "db/" & dbid() & "?a=er&rid=' & [Record ID#];
$CheckTheBox
& "&rdr=" & URLEncode($DisplayInEditMode)
That code is not tested so if there are some syntax errors please post the code and whatever error message there is.
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
I'm getting an error at the second ampersand. It says that it is sepxceting text. I tried changing the field type to rich text and URL with no luck.
------------------------------
Sarah Driscoll
------------------------------
- MarkShnier__You3 years ago
Qrew Legend
var text CheckTheBox = URLRoot() & "db/" & dbid()
& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_1630=1";
var text DisplayInEditMode = URLRoot() & "db/" & dbid() & "?a=er&rid=' & [Record ID#];
$CheckTheBox
& "&rdr=" & URLEncode($DisplayInEditMode)
The first; needs to be moved down a line.
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------- SarahDriscoll13 years agoQrew Trainee
So the error is no occurring around the re-direct part of the formula and is showing the same error as before
------------------------------
Sarah Driscoll
------------------------------- MarkShnier__You3 years ago
Qrew Legend
Please copy and paste your formula so I can see it.
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
- SarahDriscoll13 years agoQrew Trainee
Here is my current formula.
------------------------------
Sarah Driscoll
------------------------------- MarkShnier__You3 years ago
Qrew Legend
try this version
var text CheckTheBox = URLRoot() & "db/" & dbid()
& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_1630=1";
var text DisplayInEditMode = URLRoot() & "db/" & dbid() & "?a=er&rid=" & [Record ID#];
$CheckTheBox
& "&rdr=" & URLEncode($DisplayInEditMode)
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
- SarahDriscoll13 years agoQrew Trainee
That did the trick!! Thank you!
------------------------------
Sarah Driscoll
------------------------------