Overlay Return

Parent form region that receives a complete HTML field after creating a record in a Modal, Sheet or Drawer, preserving the rest of the draft

View documentation

Create a customer without leaving a sale

Start a sale and edit its reference, quantity or notes. Open New demo customer, add a fictional label, and return to the same draft with the new customer selected. Cancel the child to keep the previous selection.

This uses the Store demo's session-only data. No real customer account, payment or email is created. Use invented labels, not personal information.

Your demo sales

Save a draft or confirm a demo sale to see the result below. Nothing is charged or shipped.

No demo sales yet. Start a sale and try adding a customer without leaving the draft.

Mark the field in the parent form

Conceptual

hw:overlay-return is a structural region, not another dialog. Its name connects the opening link to the field that receives the result.

Keep the opening link inside the same form as its named region. Only that region is replaced; other fields and validation errors stay untouched. Different forms can each have a region named customer without sharing their results.

Return the field and close the child

Conceptual

After saving, return the complete field, including its label, options and selected value. Close only the child that initiated the request.

returnFromOverlay() updates the captured parent region. closeOverlay() closes the child and returns focus to its opener. The same return region works with Modal, Sheet and Drawer.