Help with custom save button adding record twice

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

I have a text formula field that creates a Save Button on the page. However, when this button is clicked the record is added twice.

Formula:
ToText("<a id='saveButton' class='Vibrant Success' onclick='DoSave(); return false;' href='#'>Save</a>")

I have tried DoSaveAdd() as well as returning true/false and omitting a return statement altogether.

Any thoughts as to why the record is adding twice?

Thanks!

Photo of Vincent

Vincent

  • 0 Points

Posted 3 years ago

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

QuickBaseCoach App Dev./Training, Champion

  • 65,422 Points 50k badge 2x thumb
Try this as a Save button

"<a id='saveButton' class='Vibrant Success' onclick='DoSaveAdd()' href='#'>SAVE</a>"
Photo of Vincent

Vincent

  • 0 Points
Unfortunately, that was one of the combinations I tried already. I copied and pasted your response just to make sure I hadn't had a typo before. No luck. Also tried on other browsers and another computer just to make sure it wasn't something weird with my machine.
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,422 Points 50k badge 2x thumb
no ideas, sorry.  I just tried adding a record to a table and it only saved once for me.