A shopper adds a scarf to the cart and ticks nothing. Your product page still shows a “Gift message” box, a card-style picker and a line about wrapping, and the shopper wonders whether they are meant to fill them in. Another shopper does want gift wrap, writes a lovely note and watches nothing happen because the note was never required. A gift form fails in both directions: it shows too much to people who do not need it, and it asks too little of people who do.
This guide shows how to ask for a gift message only when the shopper chooses gift wrap, using Datima Product Options. It describes a way of setting things up from the app’s help; it does not report results from a store.
Start with the one question that decides the rest
Everything else on a gift form depends on a single answer: is this a gift? Make that a checkbox such as “Add gift wrap”, and treat it as the only thing every shopper sees. If wrapping costs extra, put the price on it. According to the extra charges guide (last updated 24 October 2026), a checkbox is charged when it is ticked, and the shopper sees the price beside the field on the product page. The help’s own example is a $4 or $10 gift wrap, so a flat wrap fee on a checkbox is a supported pattern.
Reveal the message fields only after the tick
Under the checkbox, add the fields that only gift buyers need. A reasonable set is:
- Gift message, a text area, so a note can run to a few lines.
- Sign the message as, a short text field, if you print a name on the card.
- Card style, a dropdown or radio buttons, if you offer more than one card.
Then open each of those fields and tick Show only if…. Choose the checkbox as the field to look at, “is checked” as the comparison, and save. The help describes the setup as picking the field above, how to compare it and the value, and the Fields list then shows under each hidden field what makes it appear. A rule can only look at fields above the field it controls, so the “Add gift wrap” checkbox has to sit above the three fields in the list.
| State | Product page | Cart and order |
|---|---|---|
| Gift wrap not ticked | Only the “Add gift wrap” checkbox and its price. | No gift answers, no wrap charge. |
| Gift wrap ticked | The message, signature and card fields appear. | Each answer under its label, plus the wrap charge on the product’s line. |
Decide which gift fields are required
The helpful property of a conditional field is how it treats Required. The help states that a hidden field is treated as empty: it is never required, never charged and never on the order. So you can tick Required on the gift message and it only applies to shoppers who chose gift wrap. A shopper who skipped wrap is not blocked by a message they never saw.
Whether to require the message is a business choice, not a technical one:
- Require it if a blank card would be wasted work or an embarrassing gift. The product page then shows a required mark, and adding to the cart without an answer shows an error under the field.
- Leave it optional if many gift buyers ship to the recipient with no card, and use the placeholder and help text to say “Leave blank for no card.”
Keep the signature and card style optional unless your process truly cannot proceed without them. Every required field is one more reason to abandon the page.
Know what a hidden answer does to the order
Hidden is not the same as ignored. If a shopper ticks wrap, types a message, then unticks wrap, the field is hidden again and, by the help’s definition, is treated as empty. That is the behaviour to expect: no message and no wrap charge on the order. Confirm it on your own store, since the exact moment the page clears the typed text depends on your theme. A field hidden by another hidden field stays hidden too, so if you nest a rule on the card style, the message disappears with the tick as well.
Make the charge visible
Charges are added once per item. A shopper buying two scarves with the wrap ticked on each pays the wrap fee twice, and a one-time fee per order is not available. If your wrap is really one fee for the whole parcel, state in the label what the shopper is actually buying, for example “Gift wrap (per item)”, or reconsider the structure. The cart lists the product plus one line per charged answer, so the fee is visible before checkout. A charge makes the app create a hidden “(option add-on)” product in your store; keep it, because deleting it stops the charge until you save the option set again. Charged fields in active sets also count toward a store-wide limit of 20 fields, charged or not.
Check that the note reaches the person packing it
The point of a gift message is that someone reads it at the packing table. Per the order and packing slip guide, answers are saved under each field’s label and appear under the line item, on the packing slip and in the order API. Write labels for that reader: “Gift message (print on card)” says more on a slip than “Message”. Run this check before listing the product:
- Assign the option set to one product, set it to Active, and make sure the app embed is on.
- Open the product page and confirm that only the wrap checkbox shows.
- Tick it and confirm the three gift fields appear, with the price beside the checkbox.
- Try to add to the cart with the message empty (if you made it required) and note what the page says.
- Complete a test order with a message that includes an apostrophe, a line break and an accented letter.
- Open the order and the packing slip and compare each answer with what you typed. Then repeat once with the box unticked and confirm no gift lines and no wrap charge.
The outcomes of this check are yours to record; this article does not claim a test run.
What this does not do
Product Options collects the message and carries it to the order. It does not print the card, check the spelling, hold the message back for a different delivery address or make the wrap a separate item with its own stock. If you want the wrap to be an inventory-backed product, keep it in Shopify instead. If your theme or fulfilment tool does not show custom answers, check that before relying on the packing slip. For how to choose between the two structures, see variants or custom inputs; for a text field that must reach an engraver, see collecting engraving text, which uses the same checkbox-and-reveal pattern.
Next step
Open the Gift message template from the templates guide, add an “Add gift wrap” checkbox above the message, set Show only if… on the message and signature to “is checked”, decide whether the message is required, assign one product and run the six-step check above.