cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5: "A dialog or simple form must define the following attribute: title"

0 Kudos

I have a popup window to ask some input from the user like this:

In the code, they use a simple form like this:

<Dialog id="CreateTG" verticalScrolling="false" title="{i18n>CreateTG.Dialog.Title}">
		<content>
			<f:SimpleForm id="SimpleFormChange354wide" 
			layout="ResponsiveLayout"
			labelSpanXL="4"
			labelSpanL="3"
			labelSpanM="3"
			labelSpanS="12"
			adjustLabelSpan="true"
			emptySpanXL="0"
			emptySpanL="0"
			emptySpanM="0"
			emptySpanS="0"
			columnsXL="2"
			columnsL="1"
			columnsM="1"
			singleContainerFullSize="true"
			editable="true">
				<f:content>
					<Label text="{i18n>CreateTG.Dialog.Label.TGName}" />

The Web IDE gives us a warning message: "A dialog or simple form must define the following attribute: title"

I checked the UI5 Demo Kit sample code and realized that actually I do not want to add a title in my form.

Is there any way to fix this warning without affect my layout? I am wondering maybe they should not have used simple form in this circumstance?

Thank you!

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor
0 Kudos

Hi Jerry Zhang,

It is just an information message and you can choose to ignore it else you can select a normal XML validation in the project settings instead of Fiori XML validator.

This error will not come for normal Form:

https://ui5.sap.com/#/sample/sap.ui.layout.sample.Form354/preview

BR,

Mahesh

0 Kudos

Thank you for your information!

Answers (0)