Title: Validation as a custom function · Issue #444 · devforth/adminforth · GitHub
Open Graph Title: Validation as a custom function · Issue #444 · devforth/adminforth
X Title: Validation as a custom function · Issue #444 · devforth/adminforth
Description: Hi ! Once more - thank you for such a great framework! Is it possible to add a validation of field via custom function? In my case i want to validate if the value is in some range based other field value (e.g. apartment number based on s...
Open Graph Description: Hi ! Once more - thank you for such a great framework! Is it possible to add a validation of field via custom function? In my case i want to validate if the value is in some range based other field...
X Description: Hi ! Once more - thank you for such a great framework! Is it possible to add a validation of field via custom function? In my case i want to validate if the value is in some range based other field...
Opengraph URL: https://github.com/devforth/adminforth/issues/444
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Validation as a custom function","articleBody":"Hi !\n\nOnce more - thank you for such a great framework!\n\nIs it possible to add a validation of field via custom function?\nIn my case i want to validate if the value is in some range based other field value (e.g. apartment number based on selected house)\n\nsomethink like\n\n```js\ncolumns: [\n {\n name: 'flat',\n type: AdminForthDataTypes.STRING,\n validation: [\n {\n function: function (value, record) {\n return {ok: false}\n },\n message: 'callback error',\n },\n ],\n\n }\n ...\n]\n```\n\nOr other case - make enum array dynamically updated based on connected field (but i think this one is harder to implement)\n\n","author":{"url":"https://github.com/TrilipuT","@type":"Person","name":"TrilipuT"},"datePublished":"2026-01-08T21:32:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/444/adminforth/issues/444"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2179a7eb-21e4-6a6b-53d9-389c050c2e1e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A476:73122:14EBAB8:1B3A843:698FD2E7 |
| html-safe-nonce | 8262ebff94f6c4ec2cca1f23525b67dafc4a3f290fb9977899636ab282a0b24f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDc2OjczMTIyOjE0RUJBQjg6MUIzQTg0Mzo2OThGRDJFNyIsInZpc2l0b3JfaWQiOiI0MjQ0NDY5ODU1NDQzNDczMTI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b7d51cf60335c0a6879b398a165dc8eac0f8b1fde29e5cb06ba482001d8a80f9 |
| hovercard-subject-tag | issue:3794528296 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/devforth/adminforth/444/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d13908a12974513de6ac7cf8e589ae11239e2572ae99dc5157698006611d3a72/devforth/adminforth/issues/444 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d13908a12974513de6ac7cf8e589ae11239e2572ae99dc5157698006611d3a72/devforth/adminforth/issues/444 |
| og:image:alt | Hi ! Once more - thank you for such a great framework! Is it possible to add a validation of field via custom function? In my case i want to validate if the value is in some range based other field... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TrilipuT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/devforth/adminforth git https://github.com/devforth/adminforth.git |
| octolytics-dimension-user_id | 50526923 |
| octolytics-dimension-user_login | devforth |
| octolytics-dimension-repository_id | 803221216 |
| octolytics-dimension-repository_nwo | devforth/adminforth |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 803221216 |
| octolytics-dimension-repository_network_root_nwo | devforth/adminforth |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d320682233dfd4d28c0b30554a564c2fcd229032 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width