Before dragging and dropping a Design Library item
Afterwards
a!formLayout( label: "New Maintenance Request", contents: { a!sectionLayout( contents: {} ), a!sectionLayout( label: "Vehicle Details", contents: { rule!W2735SA_VehicleDetailsView( vehicle: ri!maintenance['recordType!{6909d85e-e650-4ce3-90f0-6447c16264e8}W2735SA Maintenance.relationships.{864e027a-211d-462d-a62a-5a6648aaab20}vehicle'], approvaldecision: null ) } ) }, buttons: a!buttonLayout( primaryButtons: { a!buttonWidget( label: "Submit", submit: true, style: "SOLID" ) }, secondaryButtons: { a!buttonWidget( label: "Cancel", value: true, saveInto: ri!cancel, submit: true, style: "OUTLINE", validate: false ) } ) )
When I drag and drop my W#SA_VehicleDetailsView from my Design Library and format it and hit Ok I get this error. I went back to the original steps for creating the Design to verify it was all correct and it checked fine.
Discussion posts and replies are publicly visible
You must be having a formLayout() inside rule!W2735SA_VehicleDetailsView(). Please check and try again after removing it. You cannot have a form layout inside a section layout
I figured it out finally, when saving the expression from the W#SA_SupervisorForm, I collapsed the section as the instructions said but misunderstood that you have to click and drag to highlight the collapsed expression otherwise when you save the expression it saves the entire forms expression. Once I fixed that it went through fine.