Create Child Object on Same Edit Page

  • 2
  • Problem
  • Updated 5 years ago
  • Not a Problem
I am following this tutorial http://help.skuidify.com/s/tutorials/... and I am curious if it is possible to simply have an additional Field Editor Section to add only One child object.

The tutorial shows how to connect the child Contact model to a table. I tried the same using another field editor, but the fields are not rendering in the preview.

Thanks for all the help!

Jacob
Photo of Jacob Flatter

Jacob Flatter

  • 1,512 Points 1k badge 2x thumb
  • meh

Posted 5 years ago

  • 2
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
You certainly can include child object data in a field editor.  The only down side is that they are not editable.  We usually find that people want to edit the child data, and so they build a separate model (that is related to the parent) and include a second field editor.   The layout can get a bit tricky there though.. 

Having said that.  If you want to include the child data in a field editor you totally can.  

1. Make sure you include the child data in your model 
2. Drag the child data item from the model field list into your field editor
3. Use the field picker to configure the data shown in the template field.

Hope you are successful. 


Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Clarification point: Rob is talking about "Child Relationship" data, which is different than what Jacob is talking about. Jacob has a separate Model for his Child object data.
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Jacob,

Your approach should work just fine. The reason your Field Editor isn't showing up, though, is that you need to go into your Child model's "Advanced" properties, and check the "Create Default Row in Model" checkbox. This will make it so that when your page loads, your Child model will start out with a new record in it, that the Field Editor will show. If your Child Model has no records in it, then the Field Editor won't show up at all.
Photo of Jacob Flatter

Jacob Flatter

  • 1,512 Points 1k badge 2x thumb
OK Cool,

The trick for me was the "Create Row if none in Model" option.

Jacob