How to manage parent child relations with grand children

The Nocobase features are awesome.

Though I do not find how I can implement a restriction that only allows the add ‘grand children’ to ‘children’ that have the same parents.

Example:

  • Parent A
    ---- Child A
    ------- Grandchild A
    ---- Child B
    ------- Grandchild B
  • Parent B
    ---- Child C
    ------- Grandchild C
    ---- Child D
    ------- Grandchild D

When I open the Form view of ‘Child C’ to to select which Grandchildren it has, I should only be able to select ‘Grandchild C’ and ‘Grandchild D’ since these share the same Grandparents. With the default behaviour, all grandchildren are selectable.

I hope this question makes sense.

Use a field like f_fullnumber, and set conditions on the form.
based on the logic, a grandchildren’s fullnumber must contains the fullnumber from the father.

You may also need to use the f_level field,
imagine you want to select your and your brother’s sons excluding your brother,
they have the same feature, containing the same grandfather’s fullnumber and have the same level, one level higher than you and your brother.

Thanks, will try that, using form conditions