← Journey Academy

Journey Academy · 2 / 5

Collect and reuse useful answers

Capture a name and notes, then show their current values on completion.

YOUR TASK

Make this happen

3 steps
  1. Add required operator text and multiline notes fields to a form between start and finish. Make the completion body read Prepared by {{ $.state.operator }}: {{ $.state.notes }}.

  2. Keep the working capabilities from the previous lesson and connect the new pieces to the same solution.

  3. Check the complete solution, then inspect any unmet requirements.

This step starts with the earlier solution and one new challenge. Each lesson keeps its own draft.

Read the starter files

main.cococo

journey_document "handoff" {
  id = "job-handoff"
  title = "Job handoff"
  icon = "job"
  estimatedMinutes = 3
  summary = "Prepare a clear handoff for the next operator."
  steps = [journey_info.start, journey_done.finish]
}

stages.cococo

journey_info "start" {
  kind = "info"
  id = "start"
  title = "Before you hand over"
  body = "Check the current job and prepare your handoff notes."
  checklist = ["Know which job you are handing over."]
}
journey_done "finish" {
  kind = "done"
  id = "finish"
  title = "Handoff prepared"
  body = "Your handoff is ready to share."
}

answers.cococo

journey_field "operator" {
  # TODO: add key — see the task above.
  kind = "text"
  label = "Your name"
  # TODO: add required — see the task above.
}

journey_field "notes" {
  # TODO: add key — see the task above.
  kind = "multiline"
  label = "Handoff notes"
  # TODO: add required — see the task above.
}

journey_form "details" {
  kind = "form"
  id = "details"
  # TODO: add title — see the task above.
  # TODO: add fields — see the task above.
}
Supplied supporting files

Reference: journeys · getting-startedjourneys · bindingsjourneys · formsjourneys · schema-formsjourneys · conditionsjourneys · completionjourneys · go-live