Forum Discussion
MarkShnier__You
Qrew Champion
Try this for the Button to get to the cancel form. It should work in all modes, add, edit, view,
var text rid =
If([Record ID#]>0,
ToText([Record ID#]),
"%%rid%%");
var text url = URLRoot() & "db/" & Dbid() & "?a=er&dfid=81&rid=" & $rid;
"<a class='Vibrant Primary SaveBeforeNavigating' data-replaceRid=true href='" & $url & "'>Your button words go here like Cancel Form</a>"
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
var text rid =
If([Record ID#]>0,
ToText([Record ID#]),
"%%rid%%");
var text url = URLRoot() & "db/" & Dbid() & "?a=er&dfid=81&rid=" & $rid;
"<a class='Vibrant Primary SaveBeforeNavigating' data-replaceRid=true href='" & $url & "'>Your button words go here like Cancel Form</a>"
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
ChrisSwirtz3
2 years agoQrew Member
Your takes me to the Cancel Form no problem, but I get this error message when I click on the cancel button from the Cancel Form.
The problem isn't getting to the Cancel form while in add mode. It is capturing that Record ID between so that theoretically when I get to the Cancel Form, it should be in edit mode of the Record that was just created. But that isn't what is happening, it's like it is saying that it is saving a record but then just reopening the add record screen in a different form.
------------------------------
Chris Swirtz
------------------------------
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<qdbapi>
<action>API_EditRecord</action>
<errcode>30</errcode>
<errtext>No such record</errtext>
<errdetail>Missing "rid" parameter.</errdetail>
</qdbapi>
The problem isn't getting to the Cancel form while in add mode. It is capturing that Record ID between so that theoretically when I get to the Cancel Form, it should be in edit mode of the Record that was just created. But that isn't what is happening, it's like it is saying that it is saving a record but then just reopening the add record screen in a different form.
------------------------------
Chris Swirtz
------------------------------
- MarkShnier__You2 years agoQrew ChampionCan you post the code for the 1st button which has my suggested code?
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------