Advanced Form Behavior: Tracking and Automation

Advanced Form Behavior: Tracking and Automation

Overview

iVendNext helps streamline your work by tracking document changes and automating routine tasks. This guide covers key features like change logs, auto-repeat documents, and quick-entry forms to simplify complex workflows.




Key Features Overview

Some of the key features are:


Feature

Use Case

Track Changes

Audit trail for edits to sensitive documents (e.g., Sales Orders).

Auto-Repeat

Automate recurring documents (e.g., monthly invoices).

Quick Entry

Speed up data entry with simplified pop-up forms.

Track Views

Monitor how often a document is accessed.




Step-by-Step Configuration

1. Enabling Document Change Tracking

Scenario: Track all modifications to Purchase Orders.


  1. Go to Customize Form > Select Purchase Order.

  2. Under More Properties, check Track Changes.

  3. Save and reload the form.


Result:


  • All edits (fields modified, old/new values) are logged in the View Change Log section.

  • Users with permissions can see who made changes and when.




2. Setting Up Auto-Repeat for Recurring Documents

Scenario: Auto-generate a monthly Rent Invoice.


  1. Open the document (e.g., Invoice) and click Menu (…) > Auto Repeat.

  2. Configure:

    • Frequency: Monthly.

    • Start/End Dates.

    • Notify Users: Email alerts upon generation.

  3. Save.


Note: Ensure Allow Auto-Repeat is enabled in Customize Form for the DocType.




3. Simplifying Data Entry with Quick Entry

Scenario: Create a pop-up form for fast Journal Entry creation.


  1. In Customize Form > Journal Entry, check Quick Entry.

  2. Update the form.

  3. Now, when creating a Journal Entry from another document, a compact form pops up with only essential fields.


Tip: Combine this with Default Values (e.g., auto-fill "Posting Date" = today).




Advanced Automation Techniques

Conditional Field Updates

Use Client Scripts to auto-populate fields based on triggers. Example: Set "Due Date" to 30 days after "Posting Date":


ivendnext.ui.form.on("Invoice", {

    posting_date: function(frm) {

        if (frm.doc.posting_date) {

            const due_date = frappe.datetime.add_days(frm.doc.posting_date, 30);

            frm.set_value("due_date", due_date);

        }

    }

});


Workflow Integration

Pair these features with iVendNext Workflows to:


  • Auto-assign tasks when documents are created.

  • Send approval requests after specific field changes.




Troubleshooting

Here’s a quick look at some common issues you might run into.


Issue

Solution

Changes not tracked?

Verify Track Changes is enabled in both Customize Form and user permissions.

Auto-Repeat fails?

Check server logs for errors; ensure the document is submitted (not draft).

Quick Entry missing fields?

Re-configure the form to include mandatory fields in the compact layout.




Best Practices

Some of the best practices are:


  1. Test in Sandbox: Verify automations with sample data before production.

  2. Document Rules: Maintain a guide for team members on how automations function.

  3. Monitor Logs: Review Auto-Repeat and Track Changes logs periodically for discrepancies.




    • Related Articles

    • Advanced Web Form Features - Unlocking Powerful Capabilities

      Overview This article will help you build sophisticated forms that enhance productivity and user experience. 1. Dynamic Field Control Conditional Logic & Field Dependencies Show/hide fields based on user input to create smart, adaptive forms: // ...
    • Using Inventory Dimensions for Advanced Stock Tracking

      Overview This article will explore how to use Inventory Dimensions for advanced stock tracking. What are Inventory Dimensions? Inventory Dimensions are attributes or parameters used to track and manage inventory in greater detail. By default, ...
    • Advanced Field Types: Geolocation and Dynamic Link

      Overview iVendNext includes advanced field types for smarter data handling. Key options like Geolocation (for maps) and Dynamic Link (for document references) offer added flexibility. This guide shows how to set them up with practical examples and ...
    • Understanding Form Customization

      Overview iVendNext’s Customize Form tool empowers users to tailor forms (DocTypes) to their business needs. Whether you need to add custom fields, modify labels, or configure print formats, this tool provides flexibility without requiring technical ...
    • Advanced POS Features

      Overview This article highlights advanced iVendNext POS features that give retail leaders a competitive edge. 1. Multi-Location Inventory Management Cross-Store Transfers Real-time visibility of stock across all locations Request transfers directly ...