replied on March 10, 2016
Hello Lidija,
Here is some code that is able to hide the Approve or Reject button based on a selection in the dropdown.
$(document).ready(function () {
var check = $("#Field1").val();
if(check == "App") {
$(".action-btn.Reject").hide();
//$(".action-btn.checkRequired.Submit").hide();
}
if(check == "Rej") {
$(".action-btn.Approve").hide();
}
});
A few things to note, the "#Field1" is the id of the dropdown box which can be found by right clicking the dropdown box and clicking "Inspect" or "Inspect Element".
The "App" and "Rej" are the values that I used for the dropdown as shown in the picture below.
The ".action-btn.Reject" and ".action-btn.Approve" are the default names of the Approve and Reject button.
Hope this helps!