Field customization is a powerful feature in iVendNext that allows users to tailor forms and documents to meet specific business needs. Whether you need to add new fields, modify existing ones, or configure advanced properties, following best practices ensures efficiency, clarity, and system performance. This article provides a step-by-step guide to field customization, covering key concepts, practical examples, and solutions to common challenges.
Before customizing fields, it’s essential to understand the available field types and their use cases. Here are some commonly used field types in iVendNext:
Link: Connects to another master to fetch data (e.g., Customer in Quotation).
Dynamic Link: Can search and hold values from any document/doctype.
Table: Embeds another DocType within the current form (e.g., Item Table in Sales Order).
Attach/Attach Image: Allows file or image attachments.
Text Editor: Supports formatted text (e.g., Terms and Conditions).
Geolocation: Stores map-based data like polygons or points.
Signature: Captures electronic signatures.
Navigate to Custom Field:
Go to Home > Customization > Form Customization > Custom Field or use the "Customize" option in any DocType’s list view.
Add a New Field:
Click Add Row and fill in the following details:
Document: Select the target DocType.
Label: Name the field (e.g., "Supplier ID").
Field Type: Choose from the dropdown (e.g., "Link," "Data").
Configure Advanced Properties:
Options: Define values for "Select" fields.
Fetch From: Specify linked doctypes for "Link" fields.
Default Value: Set a pre-filled value.
Permissions: Restrict editing access by role.
Dynamic Link fields adapt to the selected doctype. For example:
Create a "Link" field for "DocType."
Add a "Dynamic Link" field and reference the first field in "Options."
The Dynamic Link will display records based on the selected doctype.
These fields allow selecting multiple values (e.g., assigning tasks to multiple users):
Create a child doctype with a "Link" field.
Add a "Table MultiSelect" field in the parent doctype and link it to the child.
Geolocation: Use for mapping land units in agriculture.
Signature: Enable electronic signatures for approvals.
To make fields editable post-submission:
Open Customize Form for the target DocType.
Expand the field and check Allow on Submit.
Click Update.
Note: This feature works only for custom fields.
Changing a field’s data type after creation requires caution:
Navigate to Custom Field List and search for the field.
Open the record, modify the Field Type, and fill mandatory options (e.g., "Fetch From" for Link fields).
Save the changes.
Warning: Directly updating the field type in "Customize Form" may cause errors.
To pre-fill field values:
Open Customize Form for the DocType.
Expand the field and enter a Default Value.
Use placeholders like {field_name} for dynamic defaults (e.g., combining customer name and tax ID).
MySQL limits row sizes to 65,535 bytes, restricting the number of fields per form.
Convert "Data" or "Link" fields to "Text" or "Small Text" to reduce size.
Adjust the Length property to allocate less space for VARCHAR fields.
Field customization in iVendNext enhances flexibility and efficiency. By following these best practices—understanding field types, leveraging advanced features, and managing system limits—you can tailor the system to your business needs seamlessly. Always test changes in a staging environment before deploying to production.