Skip to content

Cookie settings

Choose which kinds of cookies you allow. You can change your choice at any time via Cookie settings at the bottom of every page. Privacy statement

Necessary

Always on

Needed to log in, keep your cart and remember your choices. These are always on.

Which cookies?
  • weboke_sessie, weboke_klant, weboke_remember: your session and staying logged in
  • weboke_basket: your cart
  • wkBtwIncl: showing prices with or without VAT
  • wok_cookies: your cookie choice, 12 months

Measures which ad leads to a visit or order, so we do not pay for ads that do nothing.

Which cookies?
  • Google Ads via Google Tag Manager (_gcl_au, _gcl_aw), up to 90 days
  • OpenAI Ads, ads in ChatGPT
  • wok_aff: which partner referred you to us (affiliate programme), 60 days

4.6

Country and language

Each country has its own site, with prices and VAT for that country.

View

Checking input in a form: postcode, IBAN, phone number and date

You create a registration form and get it back with a postcode without letters, an IBAN that is one digit short and a date of birth like "12/3". Then you have to call people back. With the right Format for each field, Euro-Office checks the input while the form is being filled in, and the person filling it in gets a message straight away if something is wrong.

As an example, we'll create the registration form for the workshops of Bloemisterij Het Zonnetje. The basics of creating a form are covered in Creating a PDF form.

Please note: Euro-Office doesn't save fields you add or change in a PDF automatically. Press Ctrl + S or click Save at the top left before you close the PDF; if you close it without saving, your new fields are gone. In our test (November 2026), a new field and its value were in the file in your WebOké Nextcloud within a few seconds of saving and closing. Feel free to open your form again afterwards to check that your fields and settings are still there.

Where do you set it?

  1. Open the PDF and choose Edit at the top right.
  2. Go to the Forms tab and place a Text Box on the page.
  3. Click the field. The Form settings appear on the right. If you don't see them, click the form settings icon on the far right.
  4. Give the field a clear name under Name, such as postcode.
  5. Under Format, choose what the input should look like.
The options under Format in the Form settings
Under Format (1), you choose None, Number, Percentage, Date, Time, Special or Regular expression

The options under Format

FormatWhat it doesSuitable for
NoneAnything goesName, comment
NumberOnly a numberQuantity, amount
PercentageA number as a percentageDiscount
Date and TimeOnly a date or time in the chosen notationDate of birth, start time
SpecialFixed patterns such as ZIP Code and Phone NumberPlease note: these are US patterns, see below
Regular expressionYour own pattern that you enterDutch postcode, IBAN, Dutch mobile number

Be careful with Special

With Special, you choose from ZIP Code, ZIP Code + 4, Phone Number, Social Security Number and Arbitrary Mask in a second drop-down list. The first four are US patterns: ZIP Code expects five digits such as 90210, Phone Number expects an American number, and Social Security Number is the American social security number (three, two and four digits). For Dutch data, you therefore use a regular expression.

The options under Special
Special (1): ZIP Code, ZIP Code + 4, Phone Number, Social Security Number and Arbitrary Mask are US patterns

Arbitrary Mask: guiding the typing

The fifth option under Special, Arbitrary Mask, is useful for Dutch data. You type a mask in the box below it: a 9 stands for a digit, an A for a letter, and other characters (such as a space) are shown as they are. With the mask 9999 AA, the person filling in the form can only type a digit where a digit belongs and only a letter where a letter belongs. If someone types 38a1 12, 3811 remains.

A mask only checks while typing. It simply accepts a half-completed postcode such as 3811, without a message. If you want an incomplete value to be rejected, use a regular expression.

A Dutch postcode: with a regular expression

A regular expression is a short description of what the text should look like. You don't need to learn the language: just copy the patterns from the table below.

  1. Click the postcode field.
  2. Under Format, choose Regular expression.
  3. Type the pattern in the box below it: ^[1-9][0-9]{3} ?[A-Za-z]{2}$ and press Enter.
  4. Under Tip, add an example, such as "For example 3811 AB". The warning for incorrect input doesn't say what the correct input is; the tip does.
  5. Tick Required if the postcode is mandatory.
A regular expression for the postcode
Format Regular expression (1) with the pattern for a Dutch postcode (2) and a tip (3)

Always with ^ at the start and $ at the end

Euro-Office checks whether the pattern occurs anywhere in the input. Without extra characters, the pattern for a Belgian postcode [1-9][0-9]{3} also accepts 02000, because it contains 2000. So put a ^ (caret) at the start and a $ (dollar sign) at the end: then the entire input must match the pattern. With ^[1-9][0-9]{3}$, 02000 is rejected and 2000 is accepted; with the postcode pattern above, 3811 ABC is rejected. (In the image, the pattern is still shown without ^ and $.)

Patterns to copy

FieldPatternGoodError
Dutch postcode^[1-9][0-9]{3} ?[A-Za-z]{2}$3811 AB, 3811AB12345, 3811 ABC
Belgian postcode^[1-9][0-9]{3}$200002000
Dutch mobile number^06[0-9]{8}$061234567806-1234567
Dutch IBAN^NL[0-9]{2} ?[A-Z]{4} ?([0-9]{4} ?){2}[0-9]{2}$NL91 ABNA 0417 1643 00NL91ABNA041716430

A date in British notation

If you choose Date under Format, you pick the notation from a fixed list, and the field gets an arrow for a calendar when it's filled in. That list starts with American notations such as m/d/yy (month first) and has no day-first notation with numbers only, such as dd/mm/yyyy. You have two good options:

The list of date notations
The list of date notations (1) starts with American notations; further down the list are dd-mmm-yyyy (2) and yyyy-mm-dd (3)
  • dd-mmm-yyyy: day, month as an abbreviation and year. Clear, because the day and month can't be mixed up.
  • yyyy-mm-dd: the international notation, such as 1990-12-31. Handy if you sort the answers later or put them in a spreadsheet.

Do you really want 31/12/1990? Then under Format, don't choose Date but Regular expression with the pattern ^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/(19|20)[0-9]{2}$. The field then has no calendar, but only accepts a date like 31/12/1990; 12/31/1990 is rejected. Add "dd/mm/yyyy" under Tip as an example.

Please note: if you leave the default notation m/d/yy, the field rejects a British date such as 31/12/1990 with the message that the value must match the format "m/d/yy". So always choose a notation deliberately.

Required fields and maximum length

  • Tick Required for fields that must always be filled in. Such a field gets a darker colour when the form is being filled in, so the person filling it in can see that it's mandatory.
  • With Characters limit, you set a maximum number of characters, for example 22 for a Dutch IBAN without spaces.

Testing: what the person filling in the form sees

  1. Choose Commenting at the top right; in this mode, you fill in the form just like the recipient.
  2. Type an incorrect value in the postcode field, such as 12345, and press Tab.
  3. Euro-Office shows a Warning: "Invalid value for field" with the name of the field. So give your fields a clear Name, because the person filling in the form sees it here.
  4. Click OK, type 3811 AB and press Tab: now it goes through without a message.
The warning for an incorrect postcode
With 12345 in the postcode field, the warning Invalid value for field "postcode" appears

Pitfalls

  • Format is not a check of authenticity: the IBAN pattern checks whether the input looks like a Dutch IBAN, not whether the account number exists or the check digits are correct.
  • Not too strict: a pattern for a Dutch postcode shuts out people filling in the form from Belgium or Germany. If you also work with customers abroad, make the field broader or add a separate Country field.
  • Spaces and capitals: [A-Z] only allows capital letters. If you also want lowercase letters, use [A-Za-z] as in the postcode pattern.
  • Always test with a correct and an incorrect value before you send out the form.

One moment…

Set up your domains

For each domain, arrange the nameservers, the link to your hosting and who becomes the owner.

Loading your domains…