Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Required Fields 5 years 10 months ago #13896

  • markanson
  • markanson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Hi! I'm from ServiceTitan!
Is there any way to make a field required before being able to save the document?

Please Log in or Create an account to join the conversation.

Last edit: by markanson.

Required Fields 5 years 10 months ago #13903

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
you can check if a field is required with the following method :
/**
         * get annotation field flag in acroForm.<br/>
         * this method require premium license
         * @return flag&1 : read-only<br/>
         * flag&2 : is required<br/>
         * flag&4 : no export.
         */
        final public int GetFieldFlag()
        {
            return Page.getAnnotFieldFlag(page.hand, hand);
        }

The set method is not supported.

Please Log in or Create an account to join the conversation.

Last edit: by Davide.

Required Fields 5 years 10 months ago #13909

  • markanson
  • markanson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Thank you Davide,

We're not looking to check if a field is required, we're looking to make it so that a field that is set up as required (in acrobat for example) also has that same requirement respected by Radaee PDF.

Our goal is that our users are not able to save a pdf without having entered something into that required field.

Thanks,

Please Log in or Create an account to join the conversation.

Required Fields 5 years 10 months ago #13912

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
if a filed is flaged as required with Acrobat you can read the status using GetFieldFlag(), but you can't set required flag using radaee SDK.

You can check the status of the annots with required flag (whether is filled by the user or not) before saving the document.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum