Stock Availability Feedback Form

When customers encounter out-of-stock products, it's a critical moment to capture their intent and reduce lost sales. This form measures frustration levels, gauges how urgently they need the product, and offers alternatives while capturing email addresses for restock notifications. The data helps inventory planners understand demand patterns and prioritize restocking decisions.

Retail & E-commerce

Try the Form

Help us understand your needs so we can serve you better.
How Do You Feel?
Not urgent at all
Need it immediately
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
export function inventoryFeedbackForm(form: FormTs) {
// Stock Availability / Out of Stock Feedback Form
// Demonstrates: EmojiRating, Slider, RadioButton, ThumbRating, Email, conditional notifications
 
// ============================================
// HEADER
// ============================================
form.addRow(row => {
row.addTextPanel('header', {
label: "We're Sorry - This Item is Out of Stock",
computedValue: () => 'Help us understand your needs so we can serve you better.',
customStyles: {
backgroundColor: '#dc2626',
color: 'white',
padding: '24px',
borderRadius: '12px',
textAlign: 'center'
}
});
});
 
// ============================================
// SECTION 1: Frustration Level
// ============================================
const frustrationSection = form.addSubform('frustrationSection', {
title: 'How Do You Feel?'
});
 
frustrationSection.addRow(row => {
row.addEmojiRating('frustrationLevel', {
label: 'How frustrated are you that this item is unavailable?',
preset: 'custom',
emojis: [
{ id: 'not-at-all', emoji: '😊', label: 'Not at all' },
{ id: 'slightly', emoji: '🙂', label: 'Slightly' },
{ id: 'moderately', emoji: '😐', label: 'Moderately' },
{ id: 'quite', emoji: '😕', label: 'Quite' },
{ id: 'extremely', emoji: '😤', label: 'Extremely' }
],
size: 'lg',
alignment: 'center'
});
});
 
frustrationSection.addRow(row => {
row.addRatingScale('urgency', {
label: 'How urgently do you need this product?',
preset: 'custom',
min: 1,
max: 5,
lowLabel: 'Not urgent at all',
highLabel: 'Need it immediately',
alignment: 'center'
});
});
 
// ============================================
// SECTION 2: Purchase Intent
// ============================================
const intentSection = form.addSubform('intentSection', {
title: 'Your Purchase Plans',
isVisible: () => frustrationSection.emojiRating('frustrationLevel')?.value() !== null
});
 
intentSection.addRow(row => {
row.addRadioButton('purchaseIntent', {
label: 'What will you do since this item is out of stock?',
options: [
{ id: 'wait', name: 'Wait for it to come back in stock' },
{ id: 'buy-elsewhere', name: 'Buy from a competitor' },
{ id: 'alternative', name: 'Buy a similar product from you' },
{ id: 'cancel', name: 'Cancel my purchase entirely' },
{ id: 'unsure', name: 'Not sure yet' }
],
orientation: 'vertical',
isRequired: true
});
});
 
// Conditional: Willing to wait
intentSection.addRow(row => {
row.addSlider('waitTime', {
label: 'How long are you willing to wait for restock? (days)',
min: 1,
max: 30,
step: 1,
showValue: true,
unit: 'days',
defaultValue: 7,
isVisible: () => intentSection.radioButton('purchaseIntent')?.value() === 'wait'
});
});
 
// Conditional: Alternative products
const alternativeSection = form.addSubform('alternativeSection', {
title: 'Alternative Products',
isVisible: () => intentSection.radioButton('purchaseIntent')?.value() === 'alternative',
customStyles: {
backgroundColor: '#f0fdf4',
padding: '16px',
borderRadius: '8px'
}
});
 
alternativeSection.addRow(row => {
row.addCheckboxList('acceptableAlternatives', {
label: 'Which alternatives would you consider? (Select all that apply)',
options: [
{ id: 'same-brand', name: 'Same brand, different model' },
{ id: 'same-price', name: 'Similar price range' },
{ id: 'different-color', name: 'Same product, different color' },
{ id: 'higher-end', name: 'Higher-end alternative' },
{ id: 'budget', name: 'More budget-friendly option' },
{ id: 'used', name: 'Used or refurbished' }
],
orientation: 'vertical'
});
});
 
// Conditional: Buy elsewhere feedback
const competitorSection = form.addSubform('competitorSection', {
title: 'Competitor Purchase',
isVisible: () => intentSection.radioButton('purchaseIntent')?.value() === 'buy-elsewhere',
customStyles: {
backgroundColor: '#fef3c7',
padding: '16px',
borderRadius: '8px',
borderLeft: '4px solid #f59e0b'
}
});
 
competitorSection.addRow(row => {
row.addTextPanel('competitorNote', {
computedValue: () => "We're sorry to lose your business. Your feedback helps us improve.",
customStyles: {
fontStyle: 'italic',
color: '#92400e',
marginBottom: '12px'
}
});
});
 
competitorSection.addRow(row => {
row.addRadioButton('competitorChoice', {
label: 'Where are you likely to purchase instead?',
options: [
{ id: 'amazon', name: 'Amazon' },
{ id: 'direct', name: 'Direct from manufacturer' },
{ id: 'local', name: 'Local retail store' },
{ id: 'other-online', name: 'Other online retailer' },
{ id: 'not-sure', name: 'Not sure yet' }
],
orientation: 'vertical'
});
});
 
// ============================================
// SECTION 3: Product Importance
// ============================================
const importanceSection = form.addSubform('importanceSection', {
title: 'Why This Product?',
isVisible: () => intentSection.radioButton('purchaseIntent')?.value() !== null
});
 
importanceSection.addRow(row => {
row.addSuggestionChips('productReasons', {
label: 'Why were you looking for this specific product?',
suggestions: [
{ id: 'best-price', name: 'Best price' },
{ id: 'brand', name: 'Preferred brand' },
{ id: 'features', name: 'Specific features' },
{ id: 'reviews', name: 'Great reviews' },
{ id: 'recommended', name: 'Was recommended' },
{ id: 'replacement', name: 'Replacing old one' },
{ id: 'gift', name: 'It\'s a gift' },
{ id: 'urgency', name: 'Need it now' }
],
max: 3,
alignment: 'left'
});
});
 
// ============================================
// SECTION 4: Notifications
// ============================================
const notificationSection = form.addSubform('notificationSection', {
title: 'Stay Updated',
isVisible: () => {
const intent = intentSection.radioButton('purchaseIntent')?.value();
return intent === 'wait' || intent === 'unsure';
}
});
 
notificationSection.addRow(row => {
row.addThumbRating('wantNotification', {
label: 'Would you like to be notified when this item is back in stock?',
showLabels: true,
upLabel: 'Yes, notify me',
downLabel: 'No thanks',
size: 'lg',
alignment: 'center'
});
});
 
notificationSection.addRow(row => {
row.addEmail('notificationEmail', {
label: 'Enter your email for back-in-stock notification',
placeholder: 'your@email.com',
isRequired: () => notificationSection.thumbRating('wantNotification')?.value() === 'up',
isVisible: () => notificationSection.thumbRating('wantNotification')?.value() === 'up'
});
});
 
notificationSection.addRow(row => {
row.addCheckbox('marketingConsent', {
label: 'Also send me news about similar products and special offers',
defaultValue: false,
isVisible: () => notificationSection.thumbRating('wantNotification')?.value() === 'up'
});
});
 
// ============================================
// SECTION 5: Overall Experience
// ============================================
const experienceSection = form.addSubform('experienceSection', {
title: 'Your Shopping Experience',
isVisible: () => intentSection.radioButton('purchaseIntent')?.value() !== null
});
 
experienceSection.addRow(row => {
row.addStarRating('websiteExperience', {
label: 'Despite the stockout, how would you rate your overall experience on our website?',
maxStars: 5,
size: 'lg',
alignment: 'center'
});
});
 
experienceSection.addRow(row => {
row.addMatrixQuestion('stockoutImpact', {
label: 'How does this stockout affect your view of us?',
rows: [
{ id: 'trust', label: 'Trust in our brand' },
{ id: 'return', label: 'Likelihood to shop here again' },
{ id: 'recommend', label: 'Likelihood to recommend us' }
],
columns: [
{ id: 'much-worse', label: 'Much Worse' },
{ id: 'worse', label: 'Slightly Worse' },
{ id: 'same', label: 'No Change' },
{ id: 'understand', label: 'I Understand' }
],
striped: true,
fullWidth: true
});
});
 
experienceSection.addSpacer();
 
experienceSection.addRow(row => {
row.addTextarea('additionalComments', {
label: 'Any other feedback about your experience today?',
placeholder: 'Share your thoughts...',
rows: 3,
autoExpand: true
});
});
 
// ============================================
// SECTION 6: Summary
// ============================================
const summarySection = form.addSubform('summarySection', {
title: 'Your Feedback Summary',
isVisible: () => {
const frustration = frustrationSection.emojiRating('frustrationLevel')?.value();
const intent = intentSection.radioButton('purchaseIntent')?.value();
return frustration !== null && intent !== null;
}
});
 
summarySection.addRow(row => {
row.addTextPanel('summaryContent', {
computedValue: () => {
const frustration = frustrationSection.emojiRating('frustrationLevel')?.value();
const urgency = frustrationSection.ratingScale('urgency')?.value();
const intent = intentSection.radioButton('purchaseIntent')?.value();
const waitTime = intentSection.slider('waitTime')?.value();
const notification = notificationSection.thumbRating('wantNotification')?.value();
const reasons = importanceSection.suggestionChips('productReasons')?.value() || [];
 
const frustrationLabels: Record<string, string> = {
'not-at-all': 'Not frustrated',
'slightly': 'Slightly frustrated',
'moderately': 'Moderately frustrated',
'quite': 'Quite frustrated',
'extremely': 'Extremely frustrated'
};
 
const intentLabels: Record<string, string> = {
'wait': 'Will wait for restock',
'buy-elsewhere': 'Buying from competitor',
'alternative': 'Looking at alternatives',
'cancel': 'Canceling purchase',
'unsure': 'Undecided'
};
 
let emoji = intent === 'wait' ? '⏳' : intent === 'buy-elsewhere' ? '🚪' : '🛒';
 
let summary = `${emoji} Stockout Feedback\n`;
summary += `${'═'.repeat(25)}\n\n`;
if (frustration) summary += `😤 Frustration: ${frustrationLabels[frustration] || frustration}\n`;
if (urgency) summary += `⚡ Urgency: ${urgency}/5\n`;
if (intent) summary += `🎯 Intent: ${intentLabels[intent] || intent}\n`;
if (intent === 'wait' && waitTime) summary += `⏰ Willing to wait: ${waitTime} days\n`;
if (notification === 'up') summary += `\n📧 Requested notification: Yes`;
if (reasons.length > 0) summary += `\n🏷️ Product reasons: ${reasons.join(', ')}`;
 
return summary;
},
customStyles: () => {
const intent = intentSection.radioButton('purchaseIntent')?.value();
const baseStyles = {
padding: '16px',
borderRadius: '8px',
whiteSpace: 'pre-wrap',
fontFamily: 'monospace',
fontSize: '14px'
};
 
if (intent === 'wait') {
return { ...baseStyles, backgroundColor: '#dbeafe', borderLeft: '4px solid #3b82f6' };
} else if (intent === 'buy-elsewhere' || intent === 'cancel') {
return { ...baseStyles, backgroundColor: '#fee2e2', borderLeft: '4px solid #ef4444' };
} else {
return { ...baseStyles, backgroundColor: '#fef3c7', borderLeft: '4px solid #f59e0b' };
}
}
});
});
 
// ============================================
// FORM CONFIGURATION
// ============================================
form.configureSubmitButton({
label: () => {
const notification = notificationSection.thumbRating('wantNotification')?.value();
return notification === 'up' ? 'Submit & Get Notified' : 'Submit Feedback';
},
isVisible: () => intentSection.radioButton('purchaseIntent')?.value() !== null
});
 
form.configureCompletionScreen({
type: 'text',
title: () => {
const notification = notificationSection.thumbRating('wantNotification')?.value();
return notification === 'up' ? "You're on the List!" : 'Thank You!';
},
message: () => {
const notification = notificationSection.thumbRating('wantNotification')?.value();
return notification === 'up'
? "We'll email you as soon as this item is back in stock. In the meantime, check out our similar products."
: 'Your feedback helps us manage inventory better. We appreciate your patience and understanding.';
}
});
}
 

Frequently Asked Questions

When should I show this form?

Display the form automatically when a customer clicks 'Add to Cart' or 'Notify Me' on an out-of-stock product page. You can also trigger it if they spend significant time on a sold-out product page.

How can I reduce the impact of stockouts?

Use the feedback data to improve demand forecasting. Track which products generate the most frustration and longest wait times. Consider pre-order options for high-demand items.

Should I offer alternatives in the form?

Yes, offering alternatives can save the sale and provide valuable data on substitution preferences. Customize the suggestions based on your product catalog and customer segments.

How do I use the wait time data?

The slider showing how long customers are willing to wait helps set restock priorities. If many customers will only wait 1-2 days, expedited restocking may be worthwhile for that SKU.

What should I do with collected email addresses?

Send targeted back-in-stock notifications as soon as inventory is available. Consider a tiered approach where customers willing to wait longest get notified first when stock is limited.