Skip to content

Commit e7365e2

Browse files
authored
Merge pull request #172 from tutorcruncher/slugify-dropdown-value
2 parents f843af7 + e769cc8 commit e7365e2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pages/custom-fields/custom-fields.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,16 @@ You can find the machine name of a custom field by clicking on it in your
1111
[custom field settings](https://secure.tutorcruncher.com/setup/attrs/). See [creating a client](#3-create-a-client)
1212
for an example which sets a custom field for the Client's date of birth.
1313

14+
If you are using dropdown custom fields, you must post the slugified value of the dropdown option.
15+
For example, a value `Doesn't suit student` would be posted as `doesnt-suit-student`.
16+
17+
<details>
18+
<summary>
19+
What is slugification?
20+
</summary>
21+
22+
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.
23+
24+
</details>
25+
1426

0 commit comments

Comments
 (0)