Demonstration build

Token claim, front to back

A working replica of a claim form I built and run for a writing community. The form is the part members see. The panel beside it is what the script actually does after they press submit, because the form was never the hard part. Nothing here writes anywhere; the client, the community and every member are withheld.

What the member fills in

Exactly as it appears in the member directory. The name is the join key.

Each token is worth 4,000 words of feedback.

Plain text only. Links are rejected, because a link can change after review and a pasted draft cannot.

Select tokens above to see the word limit
Off

What happens after submit

Submit the form and the eight steps below run in order, the way the deployed script runs them.

  1. Validate before anything is written Required fields, word count against tokens claimed, and a link check. The cheapest place to catch a bad submission is before it enters the ledger.
  2. Look up the member and deduct Confirms they actually hold that many unclaimed tokens, then decrements the balance. A claim for tokens the member does not have fails here.
  3. Write a document backup Member details on page one, the submitted writing after a page break. The sheet cell has a length limit; a long submission would be silently truncated without this.
  4. File it in the archive folder So the reviewer opens a document, not a spreadsheet cell.
  5. Notify the team inbox A role address, never a person, with the remaining balance and a link to the document.
  6. Confirm to the member Sent second, on purpose. If the team notification fails, nobody has yet promised the member anything.
  7. Append the row to the claims log Timestamp, name, tokens, word count, status, a blank Reviewed cell, the text and the document link.
  8. Return the confirmation to the browser The only step the member ever sees.