Hi Everyone,
We have a customization on Inventory counting journal form where a custom string field is developed. On its modified field event, we are using barcode scanner device that scans the item barcode and update the Counted column value in counting journal lines for that item.
Client requirement is to disable/hide that field from user input and only input allowed from the bar code scanning function. But by disabling the field or setting the allow edit field also stops the barcode scanning operation as well.
According to our findings till now that it is possible to capture the keyPress , KeyUp , KeyDown events BUT that is for C# based applications. those events are not available in D365.
Please share ideas or possible solutions if there is any event that can be captured or a way through which we can identify the input is coming from the user key Board or he is copy/pasting the values in that field.
Hi Muhammad, You can try textChange() method to add validations, it will only be called when user manually typing into the field
check this out
On the form string control property try setting property "Lookup Only" to Yes. It will restrict user from entering the values.
Thanks,
Girish S.
Thanks for the response.
But user will have the barcode value, that he can simply type in the text box. setting password style will not restrict him from entering the value in that text box. Whereas our core requirement is to restrict user manual input in that field.
Regards.
Hi Muhammad Luqman,
On the string control under design node - Try setting the property "Password style" to Yes and check.
I think that will restrict the copy paste functionality. Just give it a try.
Thanks,
Girish S.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156