A URL field stores a single web address. Submitters enter it, and you choose which protocols are accepted. It is the base that link fields build on.
When to use it
- A record needs a destination link: a landing page, a campaign target, or a
mailto:address. - You want a clean, validated address to feed into a Tagged URL or Short URL field.
How a value is produced
Terminus Hub stores the address as entered, trimmed of leading and trailing spaces, or the Default value if the field is blank. It does not add a protocol for you. The address must use one of the Allowed protocols and, when Allowed domains has entries, one of those hostnames. Terminus Hub never visits the page to check that it loads.Settings reference
URL fields cannot have a prefix or suffix.
Example
Adestination_url field in a Campaign URL Builder model, with Required on and Allowed protocols left on https only.
A submitter enters https://shop.acme.example/deals, which is stored as entered. Entering shop.acme.example with no scheme fails validation with must start with one of the following protocols: https. This field then feeds the campaign’s Tagged URL and Short URL fields.
Gotchas
- No protocol is added for you. Include
http://,https://, ormailto:. A bare host such asacme.examplealways fails validation. - Change the protocols to set policy. A new field accepts only
https, which keeps links secure. Add http to Allowed protocols if you must accept insecure links, or add mailto for email addresses. - Validate URL checks the domain, not the page. With it on, a malformed or nonexistent domain is rejected, but the page itself is never loaded. Placeholder domains such as
.exampleor.testfail this check. - Allowed domains match exact hostnames.
example.comdoes not allowwww.example.comorshop.example.com. List every hostname you accept.
Related
- Tagged URL field: appends query parameters to a URL field.
- Short URL field: a short redirect over a URL or Tagged URL field.
- Fields