
Introduction:
In the world of form design, ensuring a seamless user experience is paramount. One key aspect of achieving this is through the verification of lookup rules. Verification of a complete lookup rule can be used to specify when sections of a form become available for viewing or completion. Using JavaScript to insert a status into a field within the form, you can guide users through a logical and efficient workflow, enhancing both the functionality and user-friendliness of your forms.
Use Cases:
Loading Indicators: Providing visual feedback while lookups are being processed.
Error Handling: Users enter a product code to fetch product details. If the lookup fails, displaying an error message helps users understand what went wrong and how to correct it.
Test Version: Laserfiche Forms Professional Version 11.0.2311.50564
Setup: Download codes from Bait and Tackle "Verify a Lookup is complete".
Verify a Lookup is complete - Modern Designer
Select JS in the top right corner.
Copy and paste the JavaScript from "Verify a Lookup is complete" into JS.
Create a Single Line field to hold message when Lookup is complete.
Adjust your form: Change the ID to your Single Line Field ID. Change the RuleID to your Lookup Rule ID.
Tip: Show/Hide rules can be used to hide parts of your form from the end user while a lookup is loading data.
Pro Tip: Combine with a custom HTML loading animation to make your form more interactive.
Using JavaScript to provide messages when lookup rules complete in Laserfiche Forms enhances the user experience by offering real-time feedback, clear guidance, and error handling.