Skip to content

Add slugify custom field info #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pages/custom-fields/custom-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,16 @@ You can find the machine name of a custom field by clicking on it in your
[custom field settings](https://secure.tutorcruncher.com/setup/attrs/). See [creating a client](#3-create-a-client)
for an example which sets a custom field for the Client's date of birth.

If you are using dropdown custom fields, you must post the slugified value of the dropdown option.
For example, a value `Doesn't suit student` would be posted as `doesnt-suit-student`.

<details>
<summary>
What is slugification?
</summary>

When you convert spaces or repeated dashes to single dashes. Remove characters that aren't alphanumerics, underscores, or hyphens. Convert to lowercase. Also strip leading and trailing whitespace, dashes, and underscores.

</details>


Loading