- Posts: 2
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Required Fields
IP: 47.44.172.50
8 years 3 months ago - 8 years 3 months ago #13896
by markanson
Required Fields was created by markanson
Hi! I'm from ServiceTitan!
Is there any way to make a field required before being able to save the document?
Is there any way to make a field required before being able to save the document?
Last edit: 8 years 3 months ago by markanson.
IP: 37.183.44.177
8 years 3 months ago - 8 years 3 months ago #13903
by Davide
Replied by Davide on topic Required Fields
Hi,
you can check if a field is required with the following method :
The set method is not supported.
you can check if a field is required with the following method :
Code:
/**
* 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.
Last edit: 8 years 3 months ago by Davide.
IP: 47.44.172.50
8 years 3 months ago #13909
by markanson
Replied by markanson on topic Required Fields
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,
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,
IP: 37.183.44.177
8 years 3 months ago #13912
by Davide
Replied by Davide on topic Required Fields
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.
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.
Time to create page: 0.402 seconds