⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Run javascript on Click on Save or Save go back to list



cassa

cassa
  • profile picture
  • Member

Posted 01 April 2020 - 14:15 PM

I have a page where I capture signature.

I need to validate that the user has signed signature on the signature pad(separate js presents this pad)

Call before insert is probably not the best place.

 

On regular html

 

will call the script onclick function

 

When the user clicks save, I need to call this script:

 

if( $('#signature').jSignature('getData', 'native').length == 0) {
        alert('Please Enter Signature..');
        return false;
        }

Any help will be appreciated. I don want to proceed without grocery crud