If what you mean is Header → Detail relationship, the easiest way is by using Form Grid plugin
Example: I have an order and order details. This what I mean. How do I build that in Joget forms?
That is exactly what Form Grid is for. First you need to create the details form which in your case it is the OrderDetails and put the required fields as well as an additional hidden field, you can call it header_id. And then create the header form which in your case is the Order form and put the Form Grid element. You need to setup the Form Grid's load binder and store binder as in Form Grid#Validation&DataBinder to store data to the OrderDetails form.
Alternatively you can use the default Grid element with Bean Shell Form Binder but it is gonna be way more complicated.
Please Refer these tutorials:
Add a GridForm Gridhttps://www.youtube.com/@jogetinc/videos