Skip to content

docs(turbosign): document conditional (IF/THEN) fields for the API and SDKs - #150

Merged
amitsharma-turbodocx merged 1 commit into
developfrom
feature/turbosign-conditional-fields
Aug 19, 2026
Merged

docs(turbosign): document conditional (IF/THEN) fields for the API and SDKs#150
amitsharma-turbodocx merged 1 commit into
developfrom
feature/turbosign-conditional-fields

Conversation

@amitsharma-turbodocx

Copy link
Copy Markdown
Contributor

Summary

Documents TurboSign conditional (IF/THEN) fields for API and SDK users.

What changed

  • New guide TurboSign/Conditional Fields.md — concept, the metadata contract, show vs unlock, the is_not_checked operator, worked examples, validation + fail-open behavior, and tips.
  • TurboSign/API Signatures.md — adds metadata (with fieldKey and nested conditional.{controllingFieldKey, operator, action}) to the Field reference + a worked example.
  • TurboSign/API Bulk Signatures.md — note that conditional metadata works in bulk.
  • SDK reference pages (SDKs/{javascript,python,php,go,java}.md) — the metadata/conditional types and a per-language snippet, matching each SDK's real API (Go structs, PHP enums, Java FieldMetadata factories, JS/Python plain objects).
  • Prepare-for-signing code samples — a conditional example added to each language sample (raw metadata JSON on the field).

Documents the 400 InvalidConditionalRule (malformed rule → { message, type }) and the fail-open behavior when a controllingFieldKey matches no checkbox.

Verification

npm run build succeeds (pre-existing unrelated anchor warnings only).

Notes

Base is develop per repo policy. Part of a coordinated conditional-fields rollout across the TurboDocx public repos (SDK, n8n node, quickstart) — sibling PRs linked in a follow-up comment.

…d SDKs

Adds a "Conditional (IF/THEN) Fields" guide and documents the `metadata` field
object (fieldKey on a controlling checkbox; conditional { controllingFieldKey,
operator, action } on a dependent field) in the API Signatures reference, the
Bulk API note, the five SDK reference pages, and the prepare-for-signing code
samples. Covers show vs unlock, the is_not_checked operator, the
InvalidConditionalRule 400, and the fail-open behavior for a dangling key.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@amitsharma-turbodocx

Copy link
Copy Markdown
Contributor Author

Coordinated conditional-fields rollout — sibling PRs: TurboDocx/SDK#71 · TurboDocx/n8n-nodes-turbodocx#31 · TurboDocx/quickstart#24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant