Maycon,
This was very helpful. Thank you for your response!
I was able to get it working by using your suggestion along with the line of JavaScript when editing an existing record. I did have to add the "label" property to your line of code as well since it is a required property.
<toggle toggle-label-off="No" toggle-label-on="Yes" toggled="{ds.item.yourfield}" type="TrueFalse" label="Shallow"/>
JavaScript to set the value when editing an existing record:
ds.item['shallow'] = evt.item.shallow;
------------------------------
Steve
------------------------------
Original Message:
Sent: Mon May 15, 2023 02:17 AM
From: Maycon Belfort
Subject: Maximo Mobile 8.9 - YORN fields on Add/Edit Sliding Drawers
Hi Steve,
Are you passing the option toggle-type="TrueFalse"?
You can also use the toggle component instead. Here is an example:
<toggle toggle-label-off="No" toggle-label-on="Yes" toggled="{ds.item.yourfield}" type="TrueFalse"/>
------------------------------
Maycon Belfort
Consultant
BPD Zenith
Melbourne
Australia
------------------------------