Client Script - Alert message if updating to a specific state

fpuzon
Tera Contributor

Hi All,
I have an onSubmit client script that alert's the user when they attempt to submit/update a Change Request to a specific 'state' and they do not have a required role.   This seems to be working fine, however I wanted to add some logic where if the Change Request is already in that specific state, that they are able to save/update the record.   We just don't want them to be able to submit or update to that state from a previous state.       Hope that makes sense.   any help is appreciated.   Thanks everyone!

Fred

CAB Client Script.jpg

1 ACCEPTED SOLUTION

Hi Fred,



Great work!



As far as I know, disableOption() is not a method/function that comes OOB. Using g_form.removeOption() is the most common way.


View solution in original post

11 REPLIES 11

Good point.


Hi Veena,


Thanks for your reply.   After discussing this with the business we've decided to just try and disable the state.



Fred