Forum Discussion
- QuickBaseCoachDQrew Captainyes, its possible.
Make your own URL button to display the correct form and suppress the native view button.
The formula for the URL button would be like
var text FormID = IF( = "Sale", "2","10");
urlroot() & "db/" & dbid() &"?a=dr&rid=" & ToText(Record ID#]) & "&dfid=" & $FormID
In the example above, the formula variable is identifying the type of transaction and you will get the form ID# by looking at the form tab in settings for the table to see the form ID#.
I suggest labeling the button "View" and not showing it as a button.
If you also need an edit button, then make a duplicate of that field but change the a=dr (action = display record) instead to a=er (action = edit record)
To suppress the existing View and Edit buttons and use your own buttons instead, you will need to go into your Parent form, and look for the blue link to the report you have used for the embedded report- click though that to get to the report and edit it to add in your two new buttons as the first two columns and at the bottom uncheck the allow users to View and allow users to Edit, as you will instead be adding those two fields you just made as the first two columns of the report.- JimHarrisonQrew ChampionOne correction and one enhancement.
Code is missing a bracket at ToText([Record ID#])
Also to return to the originating record after clicking Save & Close instead of the default form include the last part below.
URLRoot() & "db/" & Dbid() &"?a=er&rid=" & ToText([Record ID#]) & "&dfid=x"& "&z=" & Rurl()
Oh and thanks this is awesome! - JimHarrisonQrew ChampionAlso suggest opening the View button in new window. View doesn't know how to go back to the originating form - there's no Save & Close. A User is more apt to close a window if its a pop-up but not foolproof.
Additionally if the User edits the record from the View button pop-up, Close & Save takes User back to Default form, which is weird. What we really want is the form to maintain its dfid throughout the process.
A workaround: make the View button display a form that is not editable.
- AndreaAndreaQrew TraineeThank you!! This is exactly what I was looking for.