Not applicable

Yes, i had already tried that. Rechecked now too.
Now another strange thing happens when i make this above said script, the UI policy for mandatory fields on this form fail. It works when i deactivate my script.

And fyi, i have a condition and below script in the UI action associated with the button.
action.setRedirectURL(current);
current.approval='requested';
current.state= 2;
current.update();