cancel
Showing results for 
Search instead for 
Did you mean: 

SAPui5 : change design of a label in a formelement

Former Member
0 Kudos
2,265

hello,

I am unable to change the design to for example to Bold for the labels of my formelements in my form, the 3rd line in the code below

<f:FormContainer binding="{GETPLANT>/S_T001WSet('03')}">
  <f:formElements>
    <f:FormElement label="Warehouse Number">
      <f:fields>
	<Text text="{GETPLANT>DC}"/>
      </f:fields>
    </f:FormElement>
  </f:formElements>
</f:FormContainer>

but with ui5 inspector, it is possible to change the design of the label :

So there must be a way to do it, any idea?

View Entire Topic
cdan
Explorer

Try this. Source - ChatGPT

<f:FormElement>
<f:label>
<m:Label text="Label" design="Bold" />
</f:label>
<f:fields>
<m:Input value="Input">
</f:fields>
</f:FormElement>

Hope this helps!

SyedUmer
Discoverer
Thanks, this was helpful