How do I add to a UI action I created? I have a UI action button that changes the state to In progress. Script is listed below. I would like to add making worknotes mandatory in this UI action because the client script works separately. 

 

current.incident_state = 2;
current.update();
action.setRedirectURL(current);