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
The code pasted doesn't raise any error
Could you post here the full interface please?
This is the screen shot of the error message.
Make a test, comment the rule!AX_VehicleDetailsView....
I am new to appian so not sure I understand your answer.
I commented the rule like below.
And did the test from the tutorial.
I seem to have figured it out i changed the interface AX_VehicleDetailsView....from a form to a section.
I am running into the same issue, but not following how you change the interface from a form to a section, can you please explain
Hi Devi ,
Form layout is one of the top level layout. Inside that you cannot use again another form layout or other top level layout. In the section rules you have called in the main form, check if you have used form layout , if yes remove the a!formlayout and use a!sectionLayout or simply wrap all contents using {}.
You cannot configure formLayout inside any other layout. Here your child has form and you want to configure inside section.
Thnx...this worked. I am new to Appian and going through the training, and this wasnt documented in it
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.