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

Question

Posted to Laserfiche Lounge

JavaScript Tabs: Showing Submit button based off of RadioButton

asked on March 24, 2015 Show version history

I have created a form and used JavaScript to break my sections down into Tabs. With that it also hides the Submit button until the final Tab. This works great. However the first tab contains a radio button. This radio button basically says "Do you have a resume to upload?". If you select yes you are able to attach your document and if you select no you then fill out the remainder of the form. At this point I want the Submit button to be revealed based off of the radio button being checked as "yes". 

I have tried a few ways but my JavaScript knowledge is a bit sketchy in this area. Any help would be great.

Thanks.

0 0

Answer

SELECTED ANSWER
replied on March 24, 2015

Hi Trevor,

 

The following code will show the submit button when the radio button option with a value of "Y" is clicked. (The "Y" value is spelled out when you drag the field and check the box, add value to options).

 

$(document).ready(function(){
  
  $("input[value='Y']").click(function(){
    $(".action-btn").show();
});
});

 

4 0

Replies

replied on March 25, 2015

That worked great. Thanks Carl.

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

Sign in to reply to this post.