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
Solved! Go to Solution.
An simple example of hiding the submit is linked in this post: https://nation.marketo.com/message/99240
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
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.
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.
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.
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.
An simple example of hiding the submit is linked in this post: https://nation.marketo.com/message/99240
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