Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics
I'm trying to pull down completed packages and read the fields. None of my documents have the fields array populated.
I'd like to upload a PDF with fields such as [Signer1.Fullname1.Textfield1] and require that it be formatted as ###-###-###-### where # can only be a number. How do I combine these two features - doc

Replies Created

Reply to: Document Extraction with Field Validation

0 votes
Sure, I'm not really clear on the difference. Based on my code below, can you give me the exact field names I should have on my PDF? I'm getting fields getting created in top left corner and signature field getting created in the location of my test textbox field. Do I need brackets in field names on PDF, or not? Also, I'm trying to do this with a placeholder, not an email address, how do I do WithSigner and WithSignature for that?
DocumentPackage package = PackageBuilder.NewPackageNamed("Change Of Address 2")
                    .DescribedAs("This is the Change of Address Form 2")
                    .WithSigner(SignerBuilder.NewSignerPlaceholder(new Placeholder("Signer1")))
                    .WithDocument(DocumentBuilder.NewDocumentNamed("my document 2")
                        .FromStream(fileStream1, DocumentType.PDF)
                        .EnableExtraction()
                        .WithSignature(SignatureBuilder.SignatureFor(new Placeholder("Signer1"))
                        .WithName("sig1")
                        .WithPositionExtracted()
                        .WithField(FieldBuilder.SignatureDate())
                        .WithName("date1")
                        .WithPositionExtracted()
                        .WithField(FieldBuilder.TextField())
                        .WithName("sometextfield")
                        .WithPositionExtracted())
                        )
                    .Build();

Reply to: Document Extraction with Field Validation

0 votes
Ok, great, document extraction is now working. Now, back to my original requirement, which is field validation. I've added validation to the textbox to validate that it is numeric. Is there any way to show the user what the expected data entry type is? There are no indicators, no text description, and the error message is generic. Also, when using Regex, it does not look like there is any masking, so the user would have a hard time knowing what data entry is expected.

Attachments

Subscriptions

Topics Replies Freshness Views Users
I'm trying to pull down completed packages and read the fields. None of my documents have the fields array populated.
1 7 years 2 months ago 20
Profile picture for user harishaidary
I'd like to upload a PDF with fields such as [Signer1.Fullname1.Textfield1] and require that it be formatted as ###-###-###-### where # can only be a number. How do I combine these two features - doc
7 7 years 2 months ago 98
Profile picture for user harishaidary
Profile picture for user mwilliams

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.