How can I block the click event in JavaScript in SOTI Snap?

Solved
MH
Martin H.
bitlogic Internet und Services AG

Hi,

I have a submit button whose processing of its click event I want to interrupt with javascript, on a certain condition. How can I do this?

event.preventDefault(); does not work.

Thanks a lot
Martin

4 years ago
SOTI Snap
ANSWERS
DK
Deepak Kumar
4 years ago

Hi Martin, 

We do not have the functionality to block the click event.

However, you can try doing the below tasks to achieve the use-case that you want.

  • Hide the Submit Button on page load event.
  • Put the condition to be checked as Javascript
  • Show the Submit button when the condition is True
Solution
MH
Martin H.
4 years ago

Thank you for your reply. This is how it works.