Skip to main content
Question

how do I add a save button to a form?

  • Oct 1, 2013 2:58 AM UTC
  • 0 replies
  • 715 views

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.
This topic has been closed for replies.

  • Author
  • Observing
  • Oct 2, 2013 1:32 AM UTC
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>

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!

This is what I used

WhatEverYouWantYourButtonToSay

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?

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