We need to add a line to let the employee know the manager will need to revert active goals before they can create new goals.
We need to restrict the action on Create new goal.
I think what we did for this was find the Action that's triggering this pop-up message, copy the action in configuration console, configure the pop-up message to whatever it was we wanted in the copied action, and then replaced the original action with the copied action wherever you need it.
Okay, but I don't see the verbiage for that pop up box
When the person hits "save" how do we update the message to state, if goals are already active, the manager will need to revert them to pending status.
Is there a way to add a constraint to the code listed that will allow me to updated the out of box error message?
So this looks to be a little more complicated than I thought. You need to find the action that is triggering that error message. When I look at the EmployeeGoal business class there is a "rule block" that triggers that error message called "GoalYearFieldRules". A rule block is just a constraint that sits on the business class that can be used in multiple actions/places without having to constantly having to write out the LPL.
On the EmployeeGoal business class there are 9 number of actions that include "GoalYearFieldRules".
-CreateGoal
-CreateGoalInAppraisal
-RequestNewGoalInAppraisal
-CreateGoalGeneralistActorOrgUnit
-CreateGoalLeader
-SuggestNewGoal
-RequestNewGoal
-XiRequestNewGoal
-NewGoalWizard
Based on the form LPL you provided above, it leads me to believe the Action you would copy in Configuration Console is "RequestNewGoal".
When you copy the action, you would need to find the "Rule Block", and replace it with the LPL code and then adjust the message.
Then go back to the form above and replace it with the new copied action.