can I create a javascript Back Button on a QuickBase Form

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
I have a requirement for a button on a Form to Go Back to the last REPORT it came from. It will need to be dynamic because there are about 3000 reports which load a form that will have other embedded reports.

Javascript I'm guessing :)



Mick
Photo of Michael Graham | Insight Global UK

Posted 2 years ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,542 Points 50k badge 2x thumb
Are you just looking for a generic Back button the same as you would click on your Browser to go Back to the previous page?
No because the user might have clicked on something in a report link, which does have a link back to that form.  So its possible that it wont be a general back.  It needs to go back to the Report that linked to that particular record.
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,542 Points 50k badge 2x thumb
I think that will be incredibly difficult and also a comment is that if you have 3,000 reports, then you have too many reports.  I'm not sure if you were kidding about that, but if you do have 3,000 reports, then something is arguably wrong with the design of your app and how people run reports.  The HAS to be a better way.
OH, Ive just been told we need a requirement for a Javascript Go Back Button as well, so if you know how to do that it would be handy????
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,542 Points 50k badge 2x thumb
I know that it is easy but I don't actually don't know the syntax.  Hopefully the infamous Dan Diebolt, who haunts this forum  will post an answer.
not 3000, I grossly exaggerated  1610 reports - 230 reports for 7 languages :)
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,542 Points 50k badge 2x thumb
So my next comment is that 230 reports is a bit nuts too.  Next time you need to create 2000 similar reports, there is a good chance that you can make a report which is waiting for an <ask the user> repose, but then launch the report off a record which supplies the answer to that question, so that all the user does is click a link that says run report, and it will run the report with a filter supplied by information from the record that they were sitting on.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,064 Points 20k badge 2x thumb
>Go Back to the last REPORT it came from


Could you be more explicit about the sequence of URLs you want to navigate through and what actions you are taking (eg clicking on Save, Cancel, Next buttons) at each step?
Hi Dan, I sent you a couple of emails to your gmail address with the link etc.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,064 Points 20k badge 2x thumb
I will look at in turn - I am a bit backed up at the moment.
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,542 Points 50k badge 2x thumb
Mick,

Courtesy of Xavier Fan, another QuickBase Solution provider (QSP),
here is one version of a back button.  It would be field type formula text with HTML enabled.  The words "Go Back" can be anything that you like, includig an icon.

"<a href='javascript:window.history.back();'>Go Back</a>"
Thats very handy thanks.

I added a green arrow from the image base...

"<a href='javascript:window.history.back();'><img src=\"https://images.quickbase.com/si/32/410-prev_1.png\"></a>"
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,542 Points 50k badge 2x thumb
Nicely done.  Soon you will be an HTML ninja.