Re: Forms 2.0 Not allow submit

Kim_Allen
Level 10

Forms 2.0 Not allow submit

I have a question in a form "are you a job seeker" if they choose yes that's where the form ends - the later fields aren't visible. HOWEVER, is there a way to make is so if they select yes the submit is grayed out and a message pops up taking them to a different page?
Tags (1)
2 REPLIES 2
Kim_Allen
Level 10

Re: Forms 2.0 Not allow submit

Or have text change on the submit button depending on that question?
Kenny_Elkington
Marketo Employee

Re: Forms 2.0 Not allow submit

Hey Kim,

You can do this with javascript.

<script>
$("#myfieldid").change(function() {
if (this.checked){
window.location.href = 'example.com' //do this if you just want to change the page
//or do other stuff here if you want to show a pop up or saomething else
}
});
</script>