Code Page: Create Add a New Record Button

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
How do I create a button on a new page (Code Page)? Basically I just want to be able to add button that will let me add a new record in one of my tables. I think I have done this before in a land far far away but I cannot remember how I did it.

Any assistance would be greatly appreciated!
Photo of Ann Swelgin

Ann Swelgin

  • 382 Points 250 badge 2x thumb

Posted 2 years ago

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

QuickBaseCoach App Dev./Training, Champion

  • 53,702 Points 50k badge 2x thumb
Where do you want to put this button?  On a form or on a dashboard?
Photo of Ann Swelgin

Ann Swelgin

  • 382 Points 250 badge 2x thumb
dashboard.

I click on New Page and choose Code Page.
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 53,702 Points 50k badge 2x thumb
If you want to put a Button on dashboard to create a new record, make a dashboard element of a button bar (by doing a Customize this Page" on the dashboard, and dragging the button bar icon onto the page) , and then configure the button with native QuickBase to Add new Record.  

There is no code required,.
Photo of Ann Swelgin

Ann Swelgin

  • 382 Points 250 badge 2x thumb
That part I know how to do, but when I open up an existing Code dashboard page and I want to add a button to it, there are no drag and drops I have to write the code to add the button.

I believe it is in HTML
(Edited)
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 53,702 Points 50k badge 2x thumb
OK, so I think that you are asking how to write HTML.

Here is some example of a hyperlink to ads a record.  you will need to substitute in for your table address.

<a href=bf3v99nzr?a=nwr>Click here To Add Record</a>
Photo of Ann Swelgin

Ann Swelgin

  • 382 Points 250 badge 2x thumb
that would have been a lot easier, but i opted for the pretty green button :)
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 53,702 Points 50k badge 2x thumb
ya, that code is a little fancier than mine.
Photo of Ann Swelgin

Ann Swelgin

  • 382 Points 250 badge 2x thumb
anyone can google anything these days :)