SOLVED

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

Go to solution
Anonymous
Not applicable

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

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

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

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

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

View solution in original post

8 REPLIES 8
Grégoire_Miche2
Level 10

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

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

Anonymous
Not applicable

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

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.

Geoff_Krajeski1
Level 10 - Champion Alumni

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

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.

SanfordWhiteman
Level 10 - Community Moderator

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

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.

Robb_Barrett
Marketo Employee

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

Forms 2.0 » Marketo Developers

Example 6

Robb Barrett
SanfordWhiteman
Level 10 - Community Moderator

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

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
Level 10 - Community Moderator

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

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

Anonymous
Not applicable

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

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