cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MDF Child object not more than 3 child records

inbal1986
Discoverer
0 Kudos
511

Hello,

One of our customers would like to restrict the user from adding more than three children to the MDF object.

The Extraml code is Auto Number

Is there an option to do that?

Thnak you

Inbal

Accepted Solutions (0)

Answers (1)

Answers (1)

ArunSuresh3
Active Participant
0 Kudos

Hi @inbal1986 

In the "personRelationshipInfo" HRIS element can you add "on-init" and "on-save" rule to validate the count of children using function "Get Count Of Dependents()" >3 on the personrelationship type "child" during edit action, and add the required error message? refer the below sample rule. 

Validate the rule in your test environment, if it works as expected then migrate to Production

ArunSuresh3_0-1764920796813.png

Thanks

Arun