SOLVED

Hide the submit button based on a value in a form

Go to solution
Adele_Grono2
Level 2

Hi there

I would like to hide the button "enter now" if field value = New Zealand.

Have read some other posts on the community for example https://nation.marketo.com/message/121474#comment-121474  apologies I'm having problems solving.

hide submit button based on other values.jpg

I have also visited...

MktoForms2 :: Conditionally Show Submit - JSFiddle

Looking at the CSS where do I enter the name of the field for example "Country and the value in the field, for example "New Zealand"

The aim is when a lead selects the value "New Zealand" the submit or "Enter Now" button should be hidden.

.mktoFormRow[data-wrapper-for="__showSubmit"] .mktoButtonRow,

.mktoFormRow[data-wrapper-for="__showSubmit"] .mktoPlaceholder,

.mktoFormRow[data-wrapper-for="__showSubmit"] .mktoFormCol {

  display: none !important;

}

.mktoFormRow[data-wrapper-for="__showSubmit"][data-default-state="false"] .mktoFormCol ~ .mktoButtonRow {

  display: inline-block !important;

}

Sorry are you able to assist?  Many thanks 

Sanford Whiteman​   

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

Hmm, that demo is quite an oldie and I don't think the Fiddle is working anymore. I probably wouldn't do it that way as of 2018, but at the very least here's how it's supposed to work, now in CodePen:

     MktoForms2 :: Conditionally Show Submit

That should give you more guidance about how to structure the Visibility Rules, since it actually works!

View solution in original post

15 REPLIES 15