Create parent record and associated child(ren) record on the same page

ksumner,

When you add your Contact model, set the AccountId field on this model to be the Id of the Account model. Skuid assigns a temporary ‘Id’ number for each record created (i.e. 1, 2, 3, 4, 5…). Your Save button needs to save both models. Skuid handles updating the 1, 2, 3, 4, 5 with the correct Salesforce Id (in this case the AccountId will be set for each Contact)

Here is a screenshot of the condition.

Here is my sample page:

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true" tabtooverride="Account">   <models>
  <model id="Account" limit="1" query="false" createrowifnonefound="true" sobject="Account" adapter="" type="">
     <fields>
        <field id="Name"></field>
        <field id="CreatedDate"></field>
        <field id="Phone"></field>
        <field id="ParentId"></field>
        <field id="Parent.Name"></field>
        <field id="Description"></field>
     </fields>
     <conditions></conditions>
     <actions></actions>
  </model>
  <model id="Contacts" limit="20" query="false" createrowifnonefound="false" adapter="" type="" sobject="Contact">
     <fields>
        <field id="FirstName"></field>
        <field id="LastName"></field>
        <field id="Phone"></field>
     </fields>
     <conditions>
        <condition type="modelmerge" value="" field="AccountId" operator="=" model="Account" enclosevalueinquotes="true" mergefield="Id" novaluebehavior="noquery"></condition>
     </conditions>
     <actions></actions>
  </model>
{{Name}} {{Model.label}} Account Contacts Account Contacts
Contacts

Thanks,

Bill