Skip to main content
Form Fields

Bit Form – URL Field

Estimated reading: 4 minutes 17 views

The Bit Form URL field collects a web address, such as a portfolio, a company website or a social profile. It checks that the value looks like a real address and shows the URL keyboard on phones.

Availability: Bit Form (free). Input Mask, RegEx Pattern, Suggestion and Unique Entry need Bit Form Pro.

When to use the URL field

Use it for every web address you collect, instead of a Text field, so wrong values are caught before the form is sent.

Add the URL field

In the form builder, open Add Fields, then click URL in Basic Fields or drag it onto the form. A new URL field has the label “URL” and the placeholder “https://www.example.com”. See the Form Fields Overview for other ways to add fields.

Example: a Portfolio URL field

In the job application form, Portfolio URL asks designers for a link to their work. It has the placeholder https://jordanlee.example.com, the helper text A link to your design work or case studies., and it only appears when the applicant chooses Product Designer, through Conditional Logic.

Common settings

The URL field also has the settings that most fields share. They work the same on every field, so they are explained once in Common Field Settings and Field Validation. Click a setting to read how it works:

URL field settings

Which addresses are accepted

The field accepts an address with or without https://, http:// or ftp://, so jordanlee.example.com, www.example.com and https://example.com/work all pass. The address needs a domain ending, such as .com. The browser rejects addresses like localhost and private network addresses such as 192.168.1.10.

The value is saved exactly as typed. Bit Form does not add https:// to it.

Invalid Error Message

Invalid Error Message: on the Advanced tab sets the message for an address that does not pass the check. The default is “Please, enter a valid URL”. Keep Show Error Message checked: when it is unchecked, the browser skips the address check. See Invalid Error Message.

Invalid error message setting of a url field with the message please, enter a valid url, next to the portfolio url field
  1. Invalid Error Message: with the default message.
  2. The Portfolio URL field.

Require a secure link (Pro)

To accept only addresses that start with https://, add a RegEx Pattern with the expression ^https://.+ and a message such as “Please enter a secure link that starts with https://”. See RegEx Pattern.

Regex pattern on the portfolio url field with the expression that requires https and a custom error message
  1. The expression ^https://.+.
  2. The button that inserts a ready-made pattern.
  3. Flags:, empty in this example.
  4. The custom error message.
  5. The Portfolio URL field that uses the pattern.

Using the URL field value

Insert the address in an email or PDF with its Smart Tag; see Smart Tags. Because the value is saved as typed, it may not start with https://. Add the prefix in your own template if you need a clickable link.

Limitations

  • The check confirms the format only. It does not open the address or confirm that the page exists.
  • The server check is looser than the browser check: it accepts addresses such as localhost that the browser rejects.

FAQ

Do visitors have to type https://?

No. example.com and www.example.com are accepted. Use a RegEx Pattern (Pro) if you want to require it.

Can I accept only links to one website, such as LinkedIn?

Yes, with a RegEx Pattern (Pro), for example linkedin\.com/in/. See RegEx Pattern.

Share this Doc

Bit Form – URL Field

Or copy link

CONTENTS
Before you go
The #1 Affordable Form Plugin in the Industry

10,000+

Trusted Businesses

5 Star Rated

on WordPress.org
shield
No Risk: Get a “No-Questions-Asked” refund if Bit Form is not the right fit for your project.

Subscribe

×
Cancel