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 {}.
Thnx...this worked. I am new to Appian and going through the training, and this wasnt documented in it