Creating and Customizing Web Forms

Creating and Customizing Web Forms

Overview

Web Forms are a versatile feature in iVendNext that enable businesses to collect structured data from customers, employees, or partners. Whether you need feedback forms, order requests, or service registrations, Web Forms can be tailored to meet your specific requirements. This guide provides a step-by-step approach to creating, customizing, and integrating Web Forms into your workflows.





1. Understanding Web Forms

What Are Web Forms?

Web Forms in iVendNext are dynamic interfaces that allow users to input data, which is then stored in a designated DocType. They are useful for:


  • Customer Feedback: Collect ratings and comments.

  • Surveys: Gather insights from users.

  • Order Processing: Capture order details.

  • Service Requests: Register support tickets.


Key Benefits

  • No Coding Required: Built using a drag-and-drop interface.

  • Seamless Integration: Works with DocTypes and Notifications.

  • Customizable: Supports various field types and layouts.




2. Creating a Web Form

Step 1: Define a DocType

Before creating a Web Form, you need a custom DocType to store submitted data.


  1. Navigate to Customize > DocType > New.

  2. Add relevant fields:

    • Dynamic Link Field: Connects the form to documents (e.g., Sales Order).

    • Rating Field: For feedback (e.g., 1–5 scale).

    • Text Fields: For comments or descriptions.


IdeaIdea: Use a clear naming convention (e.g., "Customer Feedback Form") for easy identification.


Step 2: Build the Web Form

  1. Go to Customize > Web Form > New.

  2. Select the target DocType (e.g., "Feedback").

  3. Drag and drop fields into the form layout.





3. Customizing Web Forms

Field Types and Advanced Options

iVendNext supports multiple field types for different use cases:


Field Type

Use Case

Text

Short answers (e.g., name, email).

Rating

Collect feedback scores (1–5 stars).

Geolocation

Capture user location.

Signature

E-signatures for approvals.

Dynamic Link

Link to other documents (e.g., Sales Order).


Conditional Logic with Client Scripts

Enhance user experience by showing/hiding fields based on selections.


// Example: Show "Comments" only if rating is low  

frappe.ui.form.on("Feedback", {  

    "rating": function(frm) {  

        frm.toggle_display("comments", frm.doc.rating <= 3);  

    }  

});  




4. Integrating Web Forms into Workflows

Notifications with Embedded Forms

Automate feedback collection by sending Web Form links via email:


  1. Create a Notification under Settings > Notifications.

  2. Use a dynamic URL: https://yourdomain.ivendnext.com/feedback?new=1&document=Sales%20Order&document_name={{doc.name}}  


  • Replace your domain with your iVendNext instance.

  • {{doc.name}} auto-populates the linked document name.


Permissions and Security

  • Restrict access by assigning roles (e.g., "Customer").

  • Enable "Allow Editing After Submission" for corrections.




5. Best Practices for Web Forms

  • Keep It Simple: Limit fields to essential data.

  • Test Before Deployment: Preview forms to ensure functionality.

  • Monitor Responses: Use List View to analyze submissions.




Conclusion

Web Forms in iVendNext empower businesses to streamline data collection and improve user engagement. By leveraging customizable fields, dynamic logic, and automated notifications, you can create efficient forms tailored to your needs.





    • Related Articles

    • Using Web Forms for Feedback Collection

      Overview Collecting feedback is essential for businesses to improve products, services, and customer experiences. iVendNext's Web Forms provide a powerful way to gather structured feedback from customers and users. This article guides you through ...
    • Effective Feedback Collection Using Web Forms

      Overview Gathering customer feedback is crucial for business growth and service improvement. iVendNext's Web Forms offer a streamlined solution to capture valuable insights directly within your workflow. This guide walks you through creating ...
    • Adding and Customizing Buttons in Forms

      Overview Buttons in iVendNext forms provide quick access to actions like submissions, approvals, or navigation. With Client Scripts, users can customize these buttons—adding new ones, renaming existing options, or hiding irrelevant actions—to better ...
    • Creating and Customizing Dashboards

      Overview Dashboards in iVendNext provide a centralized view of your retail business’s performance by consolidating key metrics into visual, easy-to-understand formats. Whether you need to track sales trends, monitor inventory levels, or analyze ...
    • Creating and Customizing Workspaces

      Overview Workspaces in iVendNext serve as personalized command centers for your daily operations. Whether you're managing sales, inventory, or HR, custom Workspaces allow you to organize tools and information exactly how you need them. This guide ...