Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
7

Form field format validation

Community Beginner ,
Dec 14, 2023 Dec 14, 2023

Greetings, everyone!

 

How do I go about implementing a format validation script for a form field called CPF?  I need the user to input a sequence of 11 digits and then automatically change it to a specific format, for example:

 

The user inputs: 12345678900  

On exiting the field, the scripts validates a mask to: 123.456.789-00

 

Thanks a lot!

Jay Cee.
TOPICS
JavaScript , PDF , PDF forms
573
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Dec 14, 2023 Dec 14, 2023

Go to that field properties and select 'Format' tab, now from format category select 'Special' and then 'Arbitrary mask' and enter this:

999.999.999-99

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 14, 2023 Dec 14, 2023

Go to that field properties and select 'Format' tab, now from format category select 'Special' and then 'Arbitrary mask' and enter this:

999.999.999-99

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 15, 2023 Dec 15, 2023
LATEST

Thank you, Nesa.  It works perfectly! 🙂

Jay Cee.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines