How to Validate Australian Phone Numbers and Emails in PDF Forms
Question details
The user needs to set up specific formatting and validation rules for Australian mobile phone numbers and email addresses within a fillable PDF form.

- Product
- Adobe Acrobat / PDF Editor
- Device & OS
- not provided
- Scenario
- Creating or configuring a fillable PDF form that requires standardized regional data entry to prevent user errors.
- Observed behavior
- The goal is to enforce a 10-digit format with spaces (e.g., 9999 999 999) for phone numbers and ensure proper email formatting before the form is submitted.
Ensure you have access to a professional PDF editor that supports advanced form field properties and custom script execution, and make sure your form is already set up with the necessary text fields.
Set an Arbitrary Mask for Australian Phone Numbers
Use the built-in field format options to enforce a strict 10-digit pattern with spaces automatically inserted as the user types.
Right-click the text field intended for the phone number and select Properties from the context menu.
Navigate to the Format tab within the Properties dialog box.
Click the 'Select format category' dropdown and choose 'Special'. Then, select 'Arbitrary Mask' from the list.
In the mask field, enter '9999 999 999'. Close the properties window to apply the changes.

Use Custom JavaScript for Email Address Validation
Apply a custom script to the email text field to verify that the entered data matches standard email formatting before acceptance.
Design and Manage Interactive PDF Forms with WPS Office
WPS Office provides a comprehensive PDF editor that allows you to effortlessly create interactive forms, add text fields, and customize field properties to capture precise data.
- 1. Launch the PDF Editor: Open WPS Office and launch the PDF editor tool with your document.
- 2. Navigate to Forms: Click on the Form tab on the top ribbon to access interactive form tools.
- 3. Insert Form Fields: Select 'Text Field' and click anywhere on the page to place your input box.
- 4. Configure Properties: Double-click or right-click the new field to select Properties, then adjust your format or validation settings.
- 5. Save the Form: Save your document to finalize and share your interactive PDF form.

Frequently Asked Questions
Why doesn't email validation check if the email actually exists?
Form validation relies on client-side rules to ensure the text matches standard email structures (like containing an @ symbol and a valid domain extension). It cannot ping an external mail server to verify if the specific inbox is active or registered.
Can I use different arbitrary masks for other phone formats?
Yes. Arbitrary masks use specific placeholder characters, such as '9' for numbers or 'A' for letters. You can adjust the string to match local landline numbers, postal codes, or complex international formats as needed.
Will these validation rules work if the user fills out the form in a web browser?
Compatibility largely depends on the browser's built-in PDF viewer. Many basic web viewers do not support advanced JavaScript executions or arbitrary masks. For the best results, it is highly recommended that users fill out the form in dedicated PDF software like WPS Office or Adobe Acrobat.




