Hi,
I am getting the following error "Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!sectionLayout [line 4]: The contents field on a column layout cannot contain a form layout. Received a form layout at index 1." when trying to complete the instructions on page 4 of Build an application step 10 of the process modeling 101 course.
See expression below.
a!formLayout( label: "New Maintenance Request", contents: { a!sectionLayout( label: "Vehicle Details", contents: {rule!AX_VehicleDetailsView(ri!vehicle) } ), a!sectionLayout( label: "Section", contents: {} ) }, 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 ) } ))
Discussion posts and replies are publicly visible
Hi ryans9191 and #Devi,I have gone through your snippet. If you take a look, it clearly states that the The contents field on a column layout cannot contain a form layout, which means we cannot use form layouts when calling an interface within another. This is because form layouts are top-level layouts and cannot be nested. Instead, we should use section layouts for such scenarios or use other layouts like card layouts or box layouts based on your requirements.