Field Types Overview:
In LENS, a wide variety of field types are available to accommodate different kinds of data and their respective use cases. Each field type is designed with specific data handling capabilities, making it easier to manage and organize information within your application.
General Field Types:
- Attach: Allows file or document uploads directly to a record.
- Use Cases: Uploading documents.
- Attach Image: Allows to attach Images of the format jpeg, png, etc.
- Use Cases: Profile photos, Product Images.
- Barcode: Allows you to enter a Barcode number.
- Use Cases: Inventory Management, Asset Tracking.
- Button: A clickable button for triggering actions.
- Use Cases: Submit buttons, action triggers.
- Check (Checkbox): A boolean field representing true/false values.
- Use Cases: Active/inactive status, completion flags.
- Code: Stores code snippets with optional syntax highlighting.
- Use Cases: Script storage, code snippets.
- Color: Allows you to specify a color for the form.
- Use Cases: Status Indicators, Event Planning.
- Currency: A numeric field for financial data, often including currency symbols.
- Use Cases: Prices, financial figures.
- Data: A basic text field for short strings of text like names or titles.
- Use Cases: Names, titles, brief descriptions.
- Date: Stores date values.
- Use Cases: Birthdates, deadlines.
- Datetime: Stores both date and time.
- Use Cases: Event scheduling, timestamps.
- Duration: Captures durations, Define Timespan.
- Use Cases: Project durations, time tracking.
- Dynamic Link: Allows you to search and hold the value of any DocType.
- Use Cases: Link contacts, opportunities, or leads to their respective accounts.
- Float: A numeric field for decimal numbers.
- Use Cases: Prices, measurements.
- Geolocation: Stores geographical coordinates for mapping.
- Use Cases: Address location, tracking.
- HTML: Allows for storing and displaying HTML content.
- Use Cases: Rich text formatting, embedded media.
- Image: Stores and displays images.
- Use Cases: Product images, profile pictures.
- Int (Integer): Stores whole numbers without decimals.
- Use Cases: Quantities, counts, IDs.
- Link: Creates references to another DocType.
- Use Cases: Foreign keys, relationships between records.
- Text: A larger text field for substantial content.
- Use Cases: Product descriptions, detailed notes.
- Small Text: A compact text field for medium-length content.
- Use Cases: Brief descriptions or additional notes.
- Long Text: Allows you to enter data with an unlimited character limit.
- Password: A secure text field for sensitive information.
- Use Cases: Passwords, secure key storage.
- Percent: The background will be calculated as a percentage.
- Use Cases: Discounts, Task Completion Tracking.
- Read Only: Displays information without allowing user modifications.
- Use Cases: Displaying calculated or system-generated data.
- Rating: The background will be calculated as Rating.
- Use Cases: Product Reviews, Feedback, Customer Satisfaction.
- Select: Provides a dropdown menu with predefined options.
- Use Cases: Status fields, category selection.
- Signature: Captures a digital signature for approvals.
- Use Cases: Approvals, consent forms.
- Table: Creates a grid for entering multiple records or data points.
- Use Cases: Item lists, detailed entries like order lines.
- Time: Stores time without date information.
- Use Cases: Appointment times, shift schedules.
Layout Fields:
- Column Break: Allows you to divide a set of fields into columns.
- Section Break: Allows you to divide the form into multiple sections.
- Tab Break: Allows you to divide the form into multiple tabs.