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

Form field format validation

Community Beginner ,
Dec 14, 2023 Dec 14, 2023

Copy link to clipboard

Copied

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

Views

149

Translate

Translate

Report

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

correct answers 1 Correct answer

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

Votes

Translate

Translate
Community Expert ,
Dec 14, 2023 Dec 14, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Thank you, Nesa.  It works perfectly! 🙂

Jay Cee.

Votes

Translate

Translate

Report

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