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

Discussion

Discussion

when form rejected forced to enter a comment

posted on September 22, 2021

Hello,

I found this on the LFanswers not too long ago, however I can't find it again.  I had it working, and now it is not :(  

 

    $('.Reject').click(function(){
   if($('#comments').val() == '')
   {
      alert('Please enter reason for denial in comments field below.');
      return false;
  }
    });

and 

I do have the Reject button selected.  the Label for the Reject button is "Return to Sender"

Thanks for any assistance!!

0 0
replied on September 22, 2021

Hi Sue,

The JavaScript code works for me on user task. Is there any error in console when you hit the reject button?

1 0
replied on September 23, 2021

Hmmm Ziyan, which console? 

0 0
replied on September 23, 2021

I meant console in browser DevTool (https://developer.chrome.com/docs/devtools/console/), which can be opened by F12.

If there is error about custom JavaScript, it will be logged there.

1 0
replied on March 18, 2022

I don't see any error...

0 0
replied on March 18, 2022

It is working now.  I found a syntax error.  Thanks and sorry for the very late response.  Been a crazy few years!!

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

Sign in to reply to this post.