altinn-designsystem
Version:
Altinn Design system based on Pattern Lab.
81 lines (79 loc) • 2.78 kB
JSON
{
"contact": {
"title": "Kontaktinformasjon for faglig brukerstøtte",
"name": {
"top-label": "Navn:",
"text-input-id": "contact-name",
"text-input-placeholder": "Feks. Kari Nordmann, Servicedesk, o.l.",
"isRequired": true,
"data-required": {
"data-required-message": "Du har ikke oppgitt navn på kontaktpunkt."
}
},
"phone": {
"top-label": "Telefon:",
"text-input-id": "contact-phone",
"text-input-placeholder": "",
"input-type": "tel",
"isRequired": true,
"error-message-popover": true,
"form-control-class": "a-input-phonenumber",
"has-feedback": {
"icon-prefix": "ai",
"iconClass": "ai-plus",
"iconExtraClass": "form-control-feedback"
},
"input-regex-validation": {
"error-message": "Telefonnummer må bestå av 8 siffer",
"validation-pattern": "\"[0-9]{8}\""
},
"form-label-isPhoneNumber": {
"text-input-id": "text-input-countrycode",
"text-input-placeholder": "+47",
"form-control-class": "a-input-countryCode a-js-countryCode",
"input-type": "tel",
"isRequired": true,
"maxlength": 6,
"minlength": 2,
"input-regex-validation": {
"error-message": "Landskode må bestå av '+' og 2 eller 3 siffer",
"validation-pattern": ""
}
}
},
"email": {
"top-label": "Epost:",
"text-input-id": "contact-email",
"text-input-placeholder": "f.eks post@karinordmann.no",
"input-type": "email",
"isRequired": true,
"error-message-popover": true,
"input-name": "email-field",
"input-regex-validation": {
"error-message": "Feil epost verdier",
"validation-pattern": "(('[^']+')|(([a-zA-Z0-9!#$%&'*+-=?^_`{|}~])+(.([a-zA-Z0-9!#$%&'*+-=?^_`{|}~])+)*))@((((([a-zA-Z0-9æøåÆØÅ]([a-zA-Z0-9-æøåÆØÅ]{0,61})[a-zA-Z0-9æøåÆØÅ].)|[a-zA-Z0-9æøåÆØÅ].){1,9})([a-zA-Z]{2,14}))|((d{1,3}).(d{1,3}).(d{1,3}).(d{1,3})))"
},
"extra-help": false,
"isHidden": false,
"isLarge": false,
"form-label-hasIcon": {
"icon-prefix": "ai",
"iconClass": "ai-closedmessage"
}
}
},
"submit": {
"button-text": "Send bestilling",
"buttonClass": "a-btn d-block mt-3",
"button-id": "a-js-contactForm-submit2",
"button-type": "button",
"onclick": false,
"button-icon": false,
"display-as-link": false,
"data-is-success": true,
"data-action": "next",
"data-toggle":"altinn-modal",
"data-target":"#modal-addservice",
"page-url": "../..link.organismer-rediger-tjeneste-ferdig"
}
}