{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-05-30T05:47:32Z","object_id":{"id":1296,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_base","title":"mod_base","uri":"https:\/\/zotonic.com\/id\/1296"},"seq":1000000}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"relation":{"objects":[{"created":"2020-05-30T05:47:32Z","object_id":{"id":1419,"is_a":["text","documentation","developerguide"],"name":"doc_developerguide_forms_and_validation","title":"Forms and validation","uri":"https:\/\/zotonic.com\/id\/1419"},"seq":1000000}],"predicate":{"id":303,"is_a":["meta","predicate"],"name":"relation","title":{"_type":"trans","tr":{"nl":"Relatie","en":"Relation"}},"uri":"http:\/\/purl.org\/dc\/terms\/relation"}},"subject":{"objects":[{"created":"2026-09-09T13:48:20Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:48:20Z","object_id":{"id":2563,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_frontend_developer","title":"Frontend developer","uri":"https:\/\/zotonic.com\/id\/2563"},"seq":2},{"created":"2026-09-09T13:48:20Z","object_id":{"id":2622,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_template_validator","title":"Template validator","uri":"https:\/\/zotonic.com\/id\/2622"},"seq":3},{"created":"2026-09-09T13:48:20Z","object_id":{"id":2640,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_validate","title":"Validate","uri":"https:\/\/zotonic.com\/id\/2640"},"seq":4},{"created":"2026-09-09T13:48:20Z","object_id":{"id":2659,"is_a":["categorization","keyword","keyword_data_type"],"name":"zotonic_topic_text","title":"Text","uri":"https:\/\/zotonic.com\/id\/2659"},"seq":5},{"created":"2026-09-09T13:48:20Z","object_id":{"id":2660,"is_a":["categorization","keyword","keyword_data_type"],"name":"zotonic_topic_number","title":"Number","uri":"https:\/\/zotonic.com\/id\/2660"},"seq":6}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1730,"is_a":["text","documentation","reference","template_validator"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1730"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_template_validator_validator_length","page_url":{"en":"https:\/\/zotonic.com\/docs\/1730\/length","x-default":"https:\/\/zotonic.com\/docs\/1730\/length"},"preview_url":null,"resource":{"version":3994,"pivot_location_lat":null,"title":"length","is_authoritative":true,"body":"<p>Check the length of a text input.<\/p>\n<p>Test if the length of the input’s value is more than a minimum and\/or less than a maximum length.<\/p>\n<p>Arguments are minimum and maximum. You can give either or both arguments.<\/p>\n<p>For example, a summary that is neither too long nor too short:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">&lt;textarea id=&quot;summary&quot; name=&quot;summary&quot;&gt;&lt;\/textarea&gt;\n{% validate id=&quot;summary&quot; type={length minimum=20 maximum=200} %}\n<\/code><\/pre>\n<h2>Arguments<\/h2>\n<table class=\"table\"><thead><tr><th>Argument<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>is<\/code><\/td><td>Use when the value must be a specific length.<\/td><td><code>is=4<\/code><\/td><\/tr><tr><td><code>minimum<\/code><\/td><td>The minimum length of the value.<\/td><td><code>minimum=4<\/code><\/td><\/tr><tr><td><code>maximum<\/code><\/td><td>The maximum length of the value.<\/td><td><code>maximum=10<\/code><\/td><\/tr><tr><td><code>wrong_length_message<\/code><\/td><td>Message for when the length is unequal to the value of the “is” argument. Defaults to “Must be . characters long.”<\/td><td><\/td><\/tr><tr><td><code>too_short_message<\/code><\/td><td>Message for when there are not enough characters entered. Defaults to “Must not be less than . characters long.”<\/td><td><\/td><\/tr><tr><td><code>too_long_message<\/code><\/td><td>Message for when there are too many characters entered. Defaults to “Must not be more than . characters long.”<\/td><td><\/td><\/tr><\/tbody><\/table>","slug":"length","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"55cffac9fba1751f48ee261069ae399c0f5c8f1a7706e60c3996252533c53d7b","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":328,"is_a":["meta","category"],"name":"template_validator","title":"Validators","uri":"https:\/\/test.zotonic.com\/id\/328"},"doc_source_path":"apps\/zotonic_mod_base\/src\/validators\/validator_base_length.erl","publication_start":"2023-06-24T08:17:55Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_base\/src\/validators\/validator_base_length.erl","pivot_location_lng":null,"doc_source_kind":"validator","name":"doc_template_validator_validator_length","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:32Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_base","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"fcd7360cf6d307f08dac71bede7378e2b4ac72f0\n","erlang_module":"validator_base_length","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-01T12:53:35Z","title_slug":"length"},"uri":"https:\/\/zotonic.com\/id\/1730","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1730"}},"status":"ok"}