A barcode, consisting of bars and spaces, is a machine-readable representation of numerals and characters. M5 new feature able to display barcode when is readonly mode.
How to Display barcode when is readonly mode
In your Form design & layout, create a barcode field as below image.
Click Edit form behavior.
Create a new behavior. Name it as 'Display barcode'. Then click Define by code.
Write the code as per below image. Check your syntax, if no error then click Save and close.
Data("Barcode")="AAAA"
IsReadonly("Barcode")=true
Click Create now.
How its look in the form:
コメント