A preferred choice would be to use the field value and use a chevron to choose a value. Look at how the work type field on dsCreateWo is implemented.
<start direction="row" horizontal-overflow="hidden" vertical-align="center" width="60" shrink="0" id="zw87b">
<field required="true" label="Work type" label-class-name="header-small" value="{dsCreateWo.item.worktype}" empty-field-placeholder="Select a type" swap-position="false" id="x8mbk"/>
</start>
<middle horizontal-align="end" horizontal-overflow="hidden" direction="column" id="vrnrb">
<button icon="Carbon:chevron--right" kind="ghost" padding="false" on-click="openWorkTypeLookup" on-click-arg="{{'page':page,'app':app, 'item':dsCreateWo.item}}" id="k62p3"/>
</middle>
</border-layout>
------------------------------
Nivin Jacob George Subject Matter Expert
Managing Consultant-SME
BPD Zenith
Melbourne VIC
------------------------------
Original Message:
Sent: Thu June 05, 2025 10:00 AM
From: Christopher Stewart
Subject: Maximo Mobile - Any way to disabled text input for smart input but allow selectable value?
For a smart input similar to this is there a way to disable text input on the input field, but still allow someone to click the 3 dots and either scan or search? If I set it to read only it removes the 3 dots menu completely. I wasn't sure fi there was a work around or a different way to accomplish this?
<smart-input enable-lookup-buttongroup="true" id="awegq" label="Location" on-change="validateLoc" on-change-arg="{{'datasource': dsCreateWo}}" placeholder="Location number" required="true" select-lookup-attribute="location" theme="dark" value="{dsCreateWo.item.location}"><button icon="Carbon:search" id="wxry5" kind="secondary" label="Search" lookup="maxlib_location_lookup_filter" slot="button-group"/><barcode-button icon="Maximo:scan" id="md92n" label="Scan" on-scan="handleLocationBarcodeScan" slot="button-group" timeout="30"/></smart-input>
------------------------------
Christopher Stewart
------------------------------