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

Activate Required Field Property

Explorer ,
Jan 20, 2016 Jan 20, 2016

I have set up a pdf form that includes a large number of fields with the required property turned on. I activated the required property by adding a "submit" button with a mailto: action.  Is there another action that I could use in case the form users don't want to genterate an email or another way to activate the required field property?

Thanks for the help!

Ken K.

TOPICS
Acrobat SDK and JavaScript , Windows
316
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
New Here ,
Jul 23, 2018 Jul 23, 2018

The presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace.

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 ,
Jul 23, 2018 Jul 23, 2018
LATEST

In Acrobat, fields marked as "required" are validated (tested for a non-default) when a form is submitted. If any "required" field value matches the default value of the field, then submit is aborted and the offending fields are highlighted. It doesn't matter if the submit is to an URL or an Email. It is the submit that triggers the validation action.

Unfortunately there is no generic "Validate" function in the JavaScript model. If you want the fields to be validated in some other scenario, then you have to write the code to make it happen.  If you search for the word "validate" on this forum you will find lots of posts on this topic.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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