A coloured row for products on promotion in the Desk list
The customer asks: A coloured row in the Desk product list for the products on promotion
- Verdict: Ready, with limits (4)
- Door: Manifest · area: Prices and promotions › Promotions and coupons
- Recipe: List mark
- Sample: none yet
- Checked: run on a sandbox 2026-10-21 · POS 2.0.0.658 · a manifest's list mark installed switched off, switched on, reached the Desk page's boot data for the user (and one ticked item matched its conditions), gone again when switched off, uninstalled; not run: the label drawn on a screen (walked by the product)
What you build
A manifest with a tick-box field of your own on Item and one list mark on it: Desk shows On promotion in green on each product row where the tick is on. These are the field and the mark that ran on the sandbox (pp_plm, a placeholder prefix: use your own).
"custom_fields": [{"dt": "Item", "fieldname": "pp_plm_on_promotion", "fieldtype": "Check", "label": "On promotion", "insert_after": "disabled"}],
"list_marks": [{"record_type": "Item", "label": "On promotion", "colour": "green", "sequence": 10,
"conditions": [{"field": "pp_plm_on_promotion", "operator": "=", "value": "1"}, {"field": "disabled", "operator": "=", "value": "0"}]}]
The retailer ticks the field on the products on promotion (or your service does, over the record API).
Limits
- A label, not a row colour: Desk colours the row's label, and also shows it in the form's header.
- Not on a submitted record type or one with an active workflow; at most five marks per record type.
- It shows after the record type's own document states and before its own list labels;
disabled = 0keeps Disabled on a disabled item. - A user who may not read every field the mark reads never sees it, and the report view shows no label.
Tell the customer
The product list shows On promotion in green on each product on promotion; it changes nothing else.
What next
- Tell the customer the 4 limits above, and write them into the proposal.
- Start from: List mark.
- Build and test it on your sandbox (request one if you have none; what is on it).
- Run the checks: your own tests, the kit's checks and the money kit's release gate (the release gate).
- Release through the customer's own release gate (The customer's release gate); an app other retailers install goes through the App library.
Install it on your sandbox the way the shop's administrator will; the checker refuses a manifest that declares code.
Related needs
- A coupon for Supplements should cover every supplement, Protein and Vitamins included — Ready, with limits (5)
- Filter the product list to the products on promotion — Ready, with limits (3)
- Our prices, promotions and coupons — Ready, with limits (3)
Start a project shortlist with this need · Put it in your blueprint · Every need