PDF Lib Function: Format

Modified on Mon, Jul 23, 2018 at 4:52 PM

The PDF Lib function format will format the Block that is is used on. 

The following pre-built in values for the function format:

us phone

Value Result
us phone  (905) 669-1234
canada phone (905) 669-1234
dot phone 905.669.1234
dash phone 905-669-1234
space phone 555 555 5555
integer 123
float 12.3
province M1M 1M1
state 12345 or 12345-12345
{### / ### - ####} Free format for phones, # is substituted by a digit
{### / ### - #### Ext:^ ####} same as above with extra extension (separate ext and ### with ^)
{#####^-####} Literals  after ^ other than # will be cleared if there aren't enough digits
now Date Format. See Date sheet for more details

If you want to create a custom fuction but there is an option to be written in two ways you need to include both possibilities. For example if the phone format was 1 222 333 3333, but they can enter the number without the country code as well. You need to include both possibilities in the value like so {# ### ###-####}{### ###-####}.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article