🧊 Cube Make

← Back to Scenarios

✅2. Onboarding - Approve Applicant (staff) - Agreement Text Usermeta

⚠️ Needs ID 12 modules

Settings

Flow (click modules to expand)

gateway 2. Onboarding Form - Agreement text usermeta #27
builtin Basic Router #20 2 routes
route Branch 1
code Execute Code #21
input:
language: javascript
inputFormat: editor
dependencies:
codeEditorJavascript: // Make Code (JS) module // Inputs (as separate variables): // input.local_or_remote (string: "local" or "remote") // input.dynamic_field (array or single string; often missing) // input.dynamic_field_1 (array or single string; often missing) // // Output: { results: [ { col, space }, ... ] } function asArray(v) { if (v === null || v === undefined) return []; if (Array.isArray(v)) return v; // Make sometimes gives a single string instead of an array return [v]; } const isRemote = String(input.local_or_remote ?? "").toLowerCase() === "remote"; const suffix = isRemote ? " (remote)" : ""; const results = []; // MC Fields - dynamic_field -> col 1 (local) / 3 (remote) for (const space of asArray(input.dynamic_field)) { const s = String(space ?? "").trim(); if (!s) continue; results.push({ col: isRemote ? "C" : "A", colGet: isRemote ? "D" : "B", spaceText: s, space: s + suffix }); } // FZ Fields - dynamic_field_1 -> col 5 (local) / 7 (remote) /* for (const space of asArray(input.dynamic_field_1)) { const s = String(space ?? "").trim(); if (!s) continue; results.push({ col: isRemote ? "G" : "E", colGet: isRemote ? "H" : "F", spaceText: s, space: s + suffix }); } */ return { results };
builtin Basic Feeder #22
array: {{21.result.results}}
google-sheets Sheet: 0 #23
tq: select {{22.colGet}} where {{22.col}} = "{{22.space}}"
select: fromAll
sheetId: 0
spreadsheetId: 1UoHP5ZNJcfzE1_9QpS7scHtK77hYRIA-Vhw7oZqXbfE
util Text Aggregator #24
value: <strong>{{22.spaceText}}</strong> - ${{23.`0`}} per day (aprox ${{(23.`0` * 30)}} per month)*
wordpress update User #25
id: {{27.search_user}}
meta:
route Branch 2
code Execute Code #10
input:
language: javascript
inputFormat: editor
dependencies:
codeEditorJavascript: // Make Code (JS) module // Inputs (as separate variables): // input.local_or_remote (string: "local" or "remote") // input.dynamic_field (array or single string; often missing) // input.dynamic_field_1 (array or single string; often missing) // // Output: { results: [ { col, space }, ... ] } function asArray(v) { if (v === null || v === undefined) return []; if (Array.isArray(v)) return v; // Make sometimes gives a single string instead of an array return [v]; } const isRemote = String(input.local_or_remote ?? "").toLowerCase() === "remote"; const suffix = isRemote ? " (remote)" : ""; const results = []; // MC Fields - dynamic_field -> col 1 (local) / 3 (remote) /* for (const space of asArray(input.dynamic_field)) { const s = String(space ?? "").trim(); if (!s) continue; results.push({ col: isRemote ? "C" : "A", colGet: isRemote ? "D" : "B", spaceText: s, space: s + suffix }); } */ // FZ Fields - dynamic_field_1 -> col 5 (local) / 7 (remote) for (const space of asArray(input.dynamic_field_1)) { const s = String(space ?? "").trim(); if (!s) continue; results.push({ col: isRemote ? "G" : "E", colGet: isRemote ? "H" : "F", spaceText: s, space: s + suffix }); } return { results };
builtin Basic Feeder #11
array: {{10.result.results}}
google-sheets Sheet: 0 #14
tq: select {{11.colGet}} where {{11.col}} = "{{11.space}}"
select: fromAll
sheetId: 0
spreadsheetId: 1UoHP5ZNJcfzE1_9QpS7scHtK77hYRIA-Vhw7oZqXbfE
util Text Aggregator #18
value: <strong>{{11.spaceText}}</strong> - ${{14.`0`}} per day (aprox ${{(14.`0` * 30)}} per month)*
wordpress update User #19
id: {{27.search_user}}
meta: