You are viewing limited content. For full access, please sign in.

Question

Question

Form Submit disabled based on form field

asked on August 28, 2019

I am needing help with css code. I have a field that is hidden always, but the data is saved. The SQL returned a value of either Active or term. If the field called Status is term, i want the submit button disabled. 

Any help would be appreciated. 

2019-08-28_10-10-23.jpg
0 0

Answer

SELECTED ANSWER
replied on August 28, 2019 Show version history

I have attached a checkbox which only when selected will display the submit button:

 

$(document).ready(function() {

 $('.Submit').hide();

  $('.showsubmitcheckbox').click(function () {

    if($('input[value="I_Agree"]').is(':checked'))

    {

      $('.Submit').show();

      }

    else

      {

      $('.Submit').hide();

      }

  });

});

This is taken from the useful css javascript in the forms process Library, with other useful stuff.

 

the Checkbox CSS is : showsubmitcheckbox

0 0
replied on August 28, 2019

Wow, I did not know that was available. I did not use your code, but did find one that will work for me. Thank you

0 0

Replies

replied on August 28, 2019

Search for "Hide Submit Button" in Answers. There are a few replies to this in the past where the JS code to produce this affect is shown based on different field types

0 0
replied on August 28, 2019

I have tried searching and using/modifying the codes. I have not had any luck

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.