So, I need to use formLayout as top level, because it's a requirement to run Process Model, but, i have a Header Content Layout (where I can't reproduce using another layout), and when I try to use this as formLayout child, there a error message that is not possible, because is not compatible. What can I do?
Discussion posts and replies are publicly visible
Hello diegodd,
You cannot use Form Layout with any combination of other layouts.
You can use section layout to display a form instead. But you might miss the alignment of the buttons.
My question is what does this headercontentlayout have in it, that you want to display?
Hello, thank you for your answer. So, I have modified my header just to show you as an example, but, basically the structure of my header as bellow. I couldn't reproduce using another structure.
a!headerContentLayout( header: { a!cardLayout( contents: { a!cardLayout( contents:{ a!columnLayout(contents:{ a!richTextDisplayField( value:{ a!richTextItem(text: "test", size: "SMALL")}) }) } ) }, height: "AUTO", style: "ACCENT", marginBelow: "NONE", showBorder: false ) }, )
The formLayout is a shortcut, but you should be able to duplicate all you need with other components. You can still get sections and anything else you need inside the contents:, and at the bottom you can just include a buttonArrayLayout. You can use columns or a side-by-side to get Cancel on one side and Submit on the other, and they can all be configured to submit, or startProcess, or you can attach a!startProcessLink to other components or attach recordActions anywhere in the form. And the form header can be duplicated with rich text or left out.
In most projects I never see anyone using formLayout on any of their forms anymore. Perhaps you could elaborate on your requirement to "run Process Model" unless this answer is sufficient.
I would go with a combination of billboard layout and section layout for this. But form Layout will definitely not do the work for your requirement.
I think the only things you lose if you don't have a form layout are form-level validations and button formats on mobile. Personally I agree with Dave - these are not that important in most cases (and you can still mostly achieve the same behavior using section level validations and button array layouts respectively).
Got it, but when i go in a site object, and I try to set a tab to execute an action with process model, there is a place holder message, to recommend start with a form, like picture below, how can I handle it?
It doesn’t have to be a form layout. You need to place your interface in the process start form.
Oh, ok, the language is just confusing. Right click on the start node of the PM and attach any SAIL you want to the start node as a start form. It technically doesn't even need a button with "submit: true" to work, but you won't run the rest of the process until you submit the form, so in that sense you need at least one button that submits.
NIce, I have understood wrong, my bad, I thought that first level from interface must be a formsLayout to works it, but I was wrong. Thank all so much to help me to understand what that i need to do.
WOW guys, it is my first time to use the Community, and I'm very surprised how fast and many people willing to help. I'm appreciate each answer here.