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

Question

Question

Hide cancel button in Forms

asked on March 10, 2022

I have task with two buttons (Reviewed and Cancel).  Before the user can cancel the task, they need to provide a reason for canceling.  My goal is to hide only the Cancel button until they click Yes in a radio button selection, Do you want to cancel this task?  I'm having trouble trying to key in only the Cancel button since both have the action of Submit when I inspect the element.  Is there a way to hide a button based on value="Cancel" to differentiate between the the Reviewed and Cancel button?

0 0

Replies

replied on March 10, 2022

You will need to use the class to hide it.  The Reject button has a class of Reject, just as the Submit has a class of Submit.

You can use the same general code as found in Hide Submit Button until Radiobutton is selected, but change the class to Reject.

$('.Reject').hide();

 

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

Sign in to reply to this post.