contact form 7 input auto formatting phone (###) ###-#### - user-input

I want to auto format the user input for phone numbers, Tax-id SSN etc.
for example:
Phone Numbers: no matter how the user will enter the phone number it will automatically format the input as (###) ###-####
Tax ID: ##-#########
SSN: ###-##-####
Currency: automatically add $ and , and . Example 54254.12 will be $54,254.12.
if anyone know how to do it or if there is a plugin that can do that please reply.

For he Phone Numbers I would suggest you to use "International Telephone Input for Contact Form 7" exte

Related

Barcode Code128 and Microsoft Word

I'm trying to get barcode Code 128 to work in Microsoft Word. We want e-mail addresses to be converted to a barcode and we're using Code 128 because Code 39 doesn't handle special characters (we have _ in our e-mail addresses).
We want the following data on the label: FirstName LastName and E-mail address (which needs to be the barcode)
I tried using the Code 128 font and the barcode scanner just won't read it. I also tried the following code:
{DISPLAYBARCODE "john_doe#domain.org" CODE128 \h 500}
If I can get this to work, I will be using Mail merge and use the MERGEBARCODE string.
I press CTRL+F9 to get the curly brackets.
What am I doing wrong? BTW, I'm using h 500 to fit the barcode within the label.
Any help/suggestions would be appreciated.
Thanks,
M

Writing a regular expression for fax numbers. Not the same as phone number

I need help writing a regular expression for a fax number. I need it to be option to have the country code. I need it to allow dashes in the country code.
Country code example:1-264
Fax Number with country code: 1-264 (555)-555-5555
Fax Number with country code: 1-264-(555)-555-5555
Fax Number with country code: 1-264-555-555-5555
either of these are allowed
I am using this in javascript but i just need the expression.
Current Code: ^(+\d{1,5}\s)?(?\d{3})?[\s.-]?\d{3}[\s.-]?\d{4}$

number representing text string

A web form collects data on students in a band organization at school. The form data is fed into a google sheet that then populates a merge template and the merged forms are emailed to the recipient. A parent needs to print, sign and turn in the forms. There are hundreds of kids in this band and at registration time when the forms are turned in it is easier to sort all the papers in the stack if you have a short sort number in the corner... Volunteer kids don't apply alphabetization well. I'm trying to create a formula that will give me that sorting number to merge onto the header of each page of the PDF they receive after submitting the form. I want it based on last name and then first name and be able to create that number (in the google sheet) on the fly because the merging happens almost instantly when the user submits the form. Hence, an excel type formula is desired that will result in a number representing the kids name. I'd like for each number to be unique but some names are the same for the first few letters, also some names are only 2 characters long. I tried making A=10, B=11, z=35 etc. (so all are 2 digits) So, using only the first 3 characters, Bob Jones would = 192423112411 - hardly easy to sort the paper at a glance and it doesn't really differentiate between Bob Janes either. 4 digits is preferable. I also looked at =code() formula and it came out with long numbers too. Any advice is appreciated. Thanks!
Side note: What method do spreadsheets use to sort text? Do they weight the characters or what? Before I got the automerge thing to work I assigned each kid in the list a number higher than the one below and lower than above (on the sheet), then did the merge.
One option is to:
sort the name list alphabetically
add a sort number column, and put a =TEXT(row(),"0000") formula to generate a unique ID
on the merge spreadsheet, use a VLOOKUP function to retrieve the unique ID for that specific name.
First off, that wall of text was kind of hard to read through. Please try and do a little formatting so the people trying to help you can easily follow what you're trying to convey.
Personally I would suggest a hyphenated system. First initial of last name converted to a number, followed by a hyphen, followed by the first two letters of their first name converted to numbers.
Bob Jones becomes 11-1956 assuming you differentiate between upper and lower case, or 11-1924 if you convert everything to upper case, which I guess makes more sense.
You could use this VBA function to convert names to a system like that:
Function ConvertToIndex(strInput As String) As String
Dim strLast As String
Dim arrName() As String
Dim strFirst1 As String
Dim strFirst2 As String
arrName = Split(strInput, " ")
strLast = Mid(arrName(1), 1, 1)
strFirst1 = Mid(arrName(0), 1, 1)
strFirst2 = Mid(arrName(0), 2, 1)
ConvertToIndex = Asc(UCase(strLast)) - 55 & "-" & Asc(UCase(strFirst1)) - 55 & Asc(UCase(strFirst2)) - 55
'MsgBox ConvertToIndex
End Function
Thank you Tim, Nutsch and Mad Tech for your responses. I appreciate your input. Sorry the paragraph was so long, I get wordy. Because the members get their merged PDF sheet immediately after submitting I need the number to be based on the name as soon as it's entered, not after the fact; so I was looking for a formula that would reside in the sheet. Interesting VBA function too though. I'll settle for numbering them afterwards, maybe when the sheets are turned in. By then I'll know all who are in the band and can assign numbers like before. Thanks again!

Font problem in writting pdf file

I have an application that can write string to pdf file. I want to write data in tabular format so i formatted the string and did write operation. Text shows up in pdf file but its not in proper format. How to do it?
Example :
I want text to be shown as:
Name Address Phone number
Aditya Pune xxxxxxxx
It is actually shown as:
Name Address Phone number
Aditya Pune xxxxxxxx
I have used stringByPaddingToLenght method. So all strings are of same length.
Using Mono-space font solved my problem.

IPhone: Textfield format with one decimal integer

I am presenting the user with a field that displays the number keyboard and only want them to be able to enter numbers with decimal it should be only one. After decimal it is should be atleast 2 digits will be there. There should be atleast one digit before the decimal.Then the input can`t be 0 or 0.00. Suppose if user enter the number 123456 it is accepted then 123.56 it also accepted if user enter 123 and then it it take 000123 and how can i take maximum length of the textfield is 6 and minimum is 1 please help me this one..
You need a regular expression for this task. This SO post should have an answer for you.