Is It Possible To Remove Form "Submit" Button Based On Answers In A Form? | Community
Skip to main content
February 25, 2016
Solved

Is It Possible To Remove Form "Submit" Button Based On Answers In A Form?

  • February 25, 2016
  • 6 replies
  • 4252 views

I am building a form for our website. The form will show one question that asks, "How Can We Help You?" with four possible answers ("I am interested in speaking to sales", "I am interested in applying to a job", "I am a current employee", and "Other"). I am using visibility rules to define what form fillers will see based on the answer to that question. In other words, if they say they want to speak to sales, one set of fields will drop down, and if they say they are interested in applying for a job, another set will drop down.

If someone answers, "I am a current employee", I simply want text to drop down (pointing to different references), and not show any option to submit the form.

Does anyone know how to remove the submit option depending on answers to questions in a form, or if it is possible?

Thanks in advance for your help!

Steve

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

An simple example of hiding the submit is linked in this post: https://nation.marketo.com/message/99240 

6 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 26, 2016

An simple example of hiding the submit is linked in this post: https://nation.marketo.com/message/99240 

February 26, 2016

Thanks for all the suggestions. Great feedback. I'm going to try hiding the button in rich text depending on answers in other fields.

Appreciate the great ideas!

Steve

Robb_Barrett
New Participant
February 26, 2016
Robb Barrett
SanfordWhiteman
New Participant
February 26, 2016

Ah, but showing/hiding the button dynamically is a different thing from disabling it . And when working with VRs you have to hook the render event because the form is changing at runtime.

SanfordWhiteman
New Participant
February 25, 2016

Completely possible.  There is an example I posted at some point in the past ~5 months that does exactly this, if you search for it.

New Participant
February 25, 2016

We have implemented page side JavaScript to show/hide objects and values in forms.  I,am positive you could do the same with the button.

February 25, 2016

You will need to do this with page side javascript, it's not possible to configure through the UI, I have done similar things in the past.

Grégoire_Miche2
New Participant
February 25, 2016

Hi Stephen,

You can easily make the form non submittable using the forms 2.0 API (Forms 2.0 » Marketo Developers). Hiding the button can probably be done with JS as well.

-Greg