Expand my Community achievements bar.

How to remove script with script

Avatar

Level 2

Hello,

I have a form that gets locked after digital signing, however I have some scripting events on the "exit" event on some fields.

When the form has locked fields, user can still click on the field and once user moves the cursor away, the exit event is triggered and script is executed.

Is there a way how to remove that exit event script with a button click for example?

Thanks in advance for your comments,

J.

2 Replies

Avatar

Level 6

adding an if condition would do the trick..........on each field under exit event I would move your code inside the following if block.

if (this.access != "protected") {

     //here goes your exit event code.......

}

Avatar

Level 2

I should have thought of that :-)

Thanks for the tip.

J.