Start a new topic
Answered

How can we restrict creation of child record to one while in the Parent Stepper

Hello,


Parent employee can have multiple addresses. In create employee stepper, I would like to add only one address. Is it possible to disable/remove "Add another" and disable "Create" after adding one child ?


Thanks,

Asha


Best Answer

Hello Asha,


You have to create a validation rule in the child entity and enable it in the Parent stepper -


Validation rule-

lookup count(test2ID) from test1.Test2s end <2


Now it will throw an error if there is more than 1 number of child records are created.


1 Comment

Answer

Hello Asha,


You have to create a validation rule in the child entity and enable it in the Parent stepper -


Validation rule-

lookup count(test2ID) from test1.Test2s end <2


Now it will throw an error if there is more than 1 number of child records are created.


Login to post a comment