cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Goal Plan when sum of weights is greater than 100

Konstantina
Explorer
0 Kudos
118

Hello,

We would like to implement the system to return an error in Goal Plan when the sum of goal weights is not 100%.

We have already added the code below in the goal plan xml:

<weight-total-option><![CDATA[enforce]]></weight-total-option>

However, the system only shows the message as shown below when we insert the goal weight:

Konstantina_0-1745573579398.png

While there is no error message in the goal plan

Konstantina_1-1745573667165.png

Is it possible that the system return an Error in the Goal Plan and not only when sending the form to the next step?

Thanks,

Konstantina

Accepted Solutions (0)

Answers (1)

Answers (1)

MridulSharmaSF
Contributor
0 Kudos

@Konstantina   under the goal plan xml inside <obj-plan-template> please update below code as per requirement then it will be a hard stop at goal plan level.

max-weight="100.0" min-weight="0" max-weight-per-obj="50.0" min-weight-per-obj="1.0"

 

Please mark this as answer so other can  get benefits from this information.

Thanks

Mridul

Konstantina
Explorer
0 Kudos

Hi Mridul,

The code is exactly as you mentioned, however the system allows us to save the goals even if the total weight is higher than 100. Is it possible to have an error message in this case inside Goal Plan?

Konstantina_0-1746174263904.png

Thanks, 

Konstantina