Smart Form Discovery Demo

These examples show how forms can be automatically discovered and rendered without hardcoding form IDs. The system will find the best matching form based on your criteria.

Example 1: Find by Form Type

<SmartContactForm formType="contact" />

Automatically finds a form with type "contact"

Discovering form...

Example 2: Find by Form Name

<SmartContactForm formName="Demo Request" />

Automatically finds a form with "Demo Request" in the name

Discovering form...

Example 3: Smart Search with Fallback

<SmartContactForm formType="newsletter" fallbackFormId="fallback-id" />

Looks for "newsletter" type, falls back to specific ID if not found

Discovering form...

🚀 Benefits of Smart Discovery

  • Zero Hardcoding: No need to hardcode form IDs
  • Automatic Updates: Form changes in Growthware appear instantly
  • Flexible Matching: Find forms by type, name, or content
  • Graceful Fallbacks: Multiple strategies to ensure forms always work
  • Self-Healing: System adapts to form changes automatically
not found
not found