Discussions

 View Only
Expand all | Collapse all

how do I add a save button to a form?

QuickBaseCoach Dev./Training

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

Khizar Hussain

Khizar Hussain02-27-2019 20:15

QuickBaseCoach Dev./Training

QuickBaseCoach Dev./Training02-27-2019 20:15

  • 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>";


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

    Posted 03-17-2021 10:34
    This is no longer supported because of the new policy of what is allowed in formula fields.  I am trying to create a save button for a form that will be in Spanish so that I can display the button text in Spanish.  (Something like "Enviar" for submit.). 

    Is there an easy way to do this with the new restrictions imposed by QuickBase?

    ------------------------------
    Tate Forgey
    ------------------------------



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

    Posted 03-17-2021 12:49
    If you go to the Advanced Properties for the table and and check he box to "save parent Automatically ....." then if you create a button which will navigate away from the record, it will save automatically.  And your use case, is there a URL that you can direct the user to?

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------



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

    Posted 03-17-2021 13:40
    I do have a URL I want these users to go to (a thank you rich text page) and this is a better solution than what I am doing now.  The real problem I am dealing with is managing different sets of users who are all in the role of everyone on the internet.

    Currently, I have created different buttons on the parent table to add a new child records that contain redirects to the thank you page specific to that audience.  Instead of the redirect in the "add record" field I'll just have them go directly to the Spanish thank you page and make sure the save works when leaving the page.  Sounds easier.

    Now, if there were a way to have these different sets of users go to a form specific to them I that would be brilliant, but I can't get the "dfid=x" to work in this situation. Bummer, but creative use of text in the form and dynamic form rules is getting me by.

    ------------------------------
    Tate Forgey
    ------------------------------