Skip to content

[Feature]: URL field must validate that the input contains https:// or http:// #28

@MIF-OS2udoglaer

Description

@MIF-OS2udoglaer

Background

In the field group “Tilmelding” on the content types:

"Undervisnings - og læringsforløb"
"Kursus"

And in the field group “Ansøgning” on the content types:

"Juniormesterlære"
"Erhvervspraktik"

the user must be required to enter a complete and valid external URL. There should be validation ensuring that the URL includes either https:// or http://.
Additionally, a help text must be added below the field to guide the user.

Acceptance Criteria

The URL field validates that the entered value starts with https:// or http://.

If the URL does not start with one of these protocols, the user receives an error message and cannot save.

The validation is implemented in:

Field group “Tilmelding” on:
"Undervisnings - og læringsforløb"
"Kursus"

Field group “Ansøgning” on:
"Juniormesterlære"
"Erhvervspraktik"

The following help text is displayed below the field:
"Skal være en ekstern URL som f.eks. https://example.com"

The help text is visible in the editor UI and does not get translated or altered.

Assumptions / Prerequisites

No response

Implementation Breakdown

No response

Test Description

No response

Risks and Risk Assessment

No response

Not included

No response

Design

No response

Data foundation

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions