Hi everyone, i try to use arcade to label my data in ArcGIS online but I'm not manage to do it since I'm very bad in coding and new to arcade.
I have a water pipe data where in the attributes I have field of pipe material and pipe diameter( both are domain coded),
I want to label my data using both field and I want to abbreviate the text for example
Mild Steel to MS, Unknown to Unk ,Abestos Cement to AC and so on..
It should be label as per figure attached.

for ArcGIS Pro , i manage to use the abbreviation library but when published to online, it's not working. I try to use function replace but not work.. What should i do..
Thank You in advance