Discussions

Expand all | Collapse all

how do I add a save button to a form?

QuickBaseCoach Dev./Training02-27-2019 02:59

  • 1.  how do I add a save button to a form?

    Posted 09-30-2013 22:58
    Looking to add a save button to a form, I am sending the user to a Survey and want to embed a Save button at the bottom of the form in case the existing save button in the top right is not obvious enough.

    I am using this
    <button id="btnFormSaveDone" class="Vibrant Success" onclick="OnClickSave(kFormAndDone)">Save</button>

    And the result is
    "The text to be displayed here contains an event handler. Event handers are not allowed.


  • 2.  RE: how do I add a save button to a form?

    Posted 10-01-2013 21:32
    Figured it out final solution

    var text URL = "javascript:void(DoSaveAdd())";var Text Image = "<a id='saveButton' class='Vibrant Success' onclick='DoSaveAdd()' href='#'>Submit</a>";"<b href =" & $URL &">" & $Image & "</b>


  • 3.  RE: how do I add a save button to a form?

    Posted 02-27-2019 02:40
    I keep getting the error "The text to be displayed here contains an event handler. Event handers are not allowed." Do you know how I could deal with that? Thanks for the help!


  • 4.  RE: how do I add a save button to a form?

    Posted 02-27-2019 02:59
    This is what I used

    WhatEverYouWantYourButtonToSay


  • 5.  RE: how do I add a save button to a form?

    Posted 02-27-2019 18:23
    My form text field has "HTML (Limited)" checked and it only allows specific html tags. And I believe that is what is not letting me use variables and formulas. Anyway I can change that?


  • 6.  RE: how do I add a save button to a form?

    Posted 02-27-2019 18:36
    You need to make a Rich Text formula field, and not just a form element.  here is the code.  My previous post did did not show the code due to how this formum  operates. 

    "<a id='saveButton' class='Vibrant Success' onclick='DoSave()' href='#'>WhatEverYouWantYourButtonToSay</a>"


  • 7.  RE: how do I add a save button to a form?

    Posted 02-27-2019 19:41
    My apologies but could you tell me how to create a RTF field?


  • 8.  RE: how do I add a save button to a form?

    Posted 02-27-2019 19:45
    np, just go to Settings for the table
    Fields
    Create new field
    Type will be Formula Rich text. 


  • 9.  RE: how do I add a save button to a form?

    Posted 02-27-2019 20:08
    That is awesome! I was able to create that and I was testing it out but rather than saving the form it keeps saying the "Data for the field 'SaveButton' is too long". Do you know what I might be messing up?


  • 10.  RE: how do I add a save button to a form?

    Posted 02-27-2019 20:12
    Most unusual.  Can you tell me what the field type is?  Is it a formula Rich Text field type?


  • 11.  RE: how do I add a save button to a form?

    Posted 02-27-2019 20:15
    It says: "Field type: Rich Text (formula)


  • 12.  RE: how do I add a save button to a form?

    Posted 02-27-2019 20:15
    Please post the code for your formula


  • 13.  RE: how do I add a save button to a form?

    Posted 02-27-2019 20:19
    It worked! Except the record saves and it switches to the dashboard rather than staying on that form. Sorry for the bother but any help on that front would be appreciated.


  • 14.  RE: how do I add a save button to a form?

    Posted 02-27-2019 20:21
    If anything, I would like the record to be added and the form to refresh for another record addition


  • 15.  RE: how do I add a save button to a form?

    Posted 02-27-2019 20:24
    I don't know how to refresh to add another record.  But if you make a button on the dashboard then it allows you to set the button to return to the Dashboard. 


  • 16.  RE: how do I add a save button to a form?

    Posted 02-27-2019 20:28
    No worries! Thank you so much for all the other help :)


  • 17.  RE: how do I add a save button to a form?

    Posted 02-28-2019 15:36
    Add the href link, which will act like a save and new

    "<a id='saveButton' class='Vibrant Success' onclick='DoSave()' href='https://mydomain.quickbase.com/db/myappDBID?a=nwr">https://citynationalbank.quickbase.com/db/bpca9ved4?a=nwr">https://mydomain.quickbase.com/db/myappDBID?a=nwr'>WhatEverYouWantYourButtonToSay</a>";


  • 18.  RE: how do I add a save button to a form?

    Posted 02-28-2019 15:36
    Add the href link, which will act like a save and new

    "<a id='saveButton' class='Vibrant Success' onclick='DoSave()' href='https://mydomain.quickbase.com/db/myappDBID?a=nwr">https://citynationalbank.quickbase.com/db/bpca9ved4?a=nwr">https://mydomain.quickbase.com/db/myappDBID?a=nwr'>WhatEverYouWantYourButtonToSay</a>";