Skip to content

Custom Field of type URL not accepting Regex Validation #5558

@PieterL75

Description

@PieterL75

Environment

  • Python version: Python 3.7.3
  • NetBox version: v2.10.2

Steps to Reproduce

  1. Create custom field
  2. set type to 'URL'
  3. set name
  4. set objects to 'dcim -> device'
  5. add 'Validation regex' (I used ^https://./device=./$ )

Expected Behavior

regex is accepted

Observed Behavior

Error is shown : "Regular expression validation is supported only for text and URL fields"

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions