Make review and closed state mandatory but display default system error message only in closed state

Cynthia19
Tera Contributor

I have a few fields on my incident form I did like to make mandatory. The requirement is to make those fields mandatory as soon as I select review state on the form  with no system message displaying and if I ignore the message and select closed, for the fields to remain mandatory and then immediately show the message. 

My solution was to do a UI Policy with state is on of  review /closed but the message is showing up as soon as I select review. How can I get that message not to show on the review state but only on the closed state

 

I have included a screenshot of where the system message shows on the form plus my ui policy 

 

Thank you

11 REPLIES 11

Allen Andreas
Administrator
Administrator

Hi,

If you don't mind, please make your question title a bit more descriptive and related to your post content. Currently, it just says: "I must be missing something"...

That doesn't help the Community at large see what your question is actually about, from outside clicking in, and appears more like clickbait, which isn't needed on the forums.

Back to your question, how are you selecting "Review"...if you're just selecting it from the state drop-down, then the UI Policy doesn't normally just blast that errorMessage on the screen. Are you selecting "Review" via a UI Action (button)? If so, then inside that there could be script trying to submit and thus yes, the error message would show.

Please mark reply as Helpful, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

@Allen Andreas 

I am selecting it from the drop-down, but when I hit save to then save it, that is when the message displays. 

Hi,

I'm glad my reply above was at least Helpful, and assisted with you changing the title of your question. Thanks!

Ok, so it's not right when you change the state to review.

Your post is pretty confusing, if you can, please re-read it and maybe clarify?

Like these sentences are a bit tough to process on my end:

"My solution was to do a UI Policy with state is on of  review /closed but the message is showing up as soon as I select review. How can I get that message not to show on the review state but only on the closed state"

So just to clarify, the system will show an errorMessage like what you see when the user attempts to save/update the record, but hasn't met the criteria to be able to do so. Mandatory fields not being filled in, will prompt this message. That is out of box and by design behavior.

So once you make the field mandatory, and don't supply a value for it, and try to save the record, it's going to show that.

That's also part of the user experience requirements to alert individuals to fields that require a value, so they know.

If you only want the mandatory nature to be enforced until a different state, then in the UI Policy, remove the unwanted state and only set it to the relevant state(s).

Please mark reply as Helpful/Correct, if applicable. Thanks!

 

 


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

@Allen Andreas 

Thank you for pointing that out, so the current functionality is when I select the review state, of course it does not show but when I save the form that's how it shows. Which  I how it should behave But the users want to customize it in a way that the review state does remain mandatory without the message showing till they are in the closed state. So I guess my ask is how can I prevent that message from showing in the review state even if I save the form but show in the closed state. I hope this is a bit clearer 

Thank you