A developer is struggling to add form fields to a Shopify AppBridge Modal in their Rails application. The initial issue involves creating a modal with proper form elements that can be submitted.
Key Challenge:
AppBridge Modal renders in Shopify Admin while the Rails app runs in an iframe (embedded)
Cannot directly access or manipulate the modal’s DOM to inject HTML form content
The message property only accepts text, not HTML markup
Attempted Solutions:
Using innerHTML on content targets - renders as text instead of HTML
Trying to append HTML to modal sections via document.querySelector('.Polaris-Modal-Section') - fails due to iframe isolation
Context:
Shopify deprecated polaris_modal, forcing developers to use AppBridge Modals
AppBridge Modals are intentionally limited in customization options
Current Status:
The issue remains unresolved. The architectural constraint of the modal existing in Shopify Admin while the app runs in an iframe prevents direct DOM manipulation, leaving the developer without a clear path to embed custom form fields.
Summarized with AI on November 5.
AI used: claude-sonnet-4-5-20250929.