This topic contains 17 replies, has 2 voices, and was last updated by  mwilliams 2 weeks, 4 days ago.

  • Author
    Posts
  • Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Hello,

    I inject a CheckBox with ‘X’, while signing, getting this message ‘Form is inComplete’.

    Please provide help about this issue.

    Thanks

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    Can you explain in more detail, please?

    Are you using OneSpan Sign’s injected field capability to flatten an X into a checkbox on your document and getting this issue? Or something else?


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120
    Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Score

    0

    Hello,

    Yes I am using SDK to injected field capability to flatten an X into a checkbox on your document.
    All the fields injection working fine except for the Checkbox

    Thanks,
    Nehme

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    Hey Nehme,

    Could you send the code you’re using and attach a sample document (no confidential or personal info, please) so I can reproduce the issue?


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120
    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    Also, if you could let me know your SDK version, that would be great, too.


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120
    Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Score

    0

    Hello,

    template.Documents[y].Signatures[s].Fields[f].Value = ‘X’

    I am using this command to inject all the fields in the form.

    Thanks,
    Nehme

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    Any chance you could send me a sample document with all relevant code for the document so I can start with exactly what you have? And also give me your SDK version and the OneSpan Sign instance you’re using.

    Thanks!


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120
    Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Score

    0

    Hello,

    The SDK version is 11.19.0.0. What is the inject field value for checkbox if you do not want to check it?

    Thanks,
    Nehme

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    Hey Nehme,

    I’m a bit confused, I think. If you didn’t want to inject a value into the document, you just wouldn’t tell OneSpan Sign that you want to use a field from your PDF document and it would just be ignored.

    In OneSpan Sign, an injected field is a value you push into your document through a PDF Form Field. It’s an actual field type in the SDK. This field type is not editable by the signer as the value becomes a flattened part of the document itself. To OneSpan Sign, a field that is editable by the signer is just called a field, not an injected field.

    So, if you’re trying to put a “default value” into a field that will be able to be changed by the signer, we can do that. If you’re wanting to actually flatten an injected value into the document via an injected field that the signer will not be able to modify, we can also do that. Let me know what you’re trying to do and I’ll help you get what you need.


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120
    Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Score

    0

    Hello,

    Everything working fine with me for injecting fields but when I inject a value for the check box, I am getting the message the form is in complete. If I do not inject any value for checkbox I am not getting this in complete message.

    I am injecting the checkbox with ‘X’.

    Thanks,
    Nehme

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    That should be the proper value. Let me do a few quick tests!


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120
    Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Score

    0

    Hello,

    Yes Please.
    I will wait your feedback.

    Thanks,
    Nehme

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    Hey Nehme,

    Sorry for the delay. I was having issues testing in sandbox. I found that injected fields currently has a bug, in sandbox US where the value does not get applied to the injected field. This has not been released to production and I am unable to reproduce your issue in production.

    Here is my code to set the injected field value with the .NET SDK:

    DocumentPackage mydocpackage = PackageBuilder.NewPackageNamed("Injected Field Test")
                                                    .WithSigner(SignerBuilder.NewSignerWithEmail("test@mailinator.com")
                                                        .WithCustomId("signer1")
                                                        .WithFirstName("Test")
                                                        .WithLastName("Signer"))
                                                    .WithDocument(DocumentBuilder.NewDocumentNamed("TestDoc")
                                                        .FromFile("C:/filepath/sampleAgreement_InjectedFields.pdf")
                                                        .WithSignature(SignatureBuilder.SignatureFor("test@mailinator.com")
                                                            .WithName("SignerSignature")
                                                            .WithPositionExtracted())
                                                        .EnableExtraction()
                                                        .WithInjectedField(FieldBuilder.CheckBox()
                                                            .WithName("mycheckbox")
                                                            .WithId("mycheckbox")
                                                            .WithValue("X")))
                                               .Build();

    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120
    Participant
    nehme
    Advanced Member
    Member since: 23.07.2018
    Number of posts: 123

    Score

    0

    Hello,

    Thanks for your answer. I am doing this test in Production account CA.
    The code I am using to inject the fields is this:

    List signatureList = curDoc.Signatures;
    foreach (var signature in signatureList) {
    List fieldList = signature.Fields;
    foreach (var curField in fieldList) {
    curField.Value = “xxx”;
    }
    db.WithSignature(signature);
    }

    So when I inject Checkbox with value = “X”, the message will show the form is in complete.
    Only the checkbox injection is not working.
    Can you help in this issue please.

    Thanks,
    Nehme

    Keymaster
    mwilliams
    Guru
    Member since: 21.08.2015
    Number of posts: 900

    Score

    0

    Hey Nehme,

    It appears that what you’re doing is not an “injected field” but a standard field, as I described above. If the field is for the signer to interact with, it’s not injected. It’s just a field.

    Canadian production works fine with “injected fields”. I will test with a “default value” for a “standard field”, now.

    I will let you know.


    – Michael
    Partner and Developer Technologies Manager, OneSpan
    Facebook – https://www.facebook.com/michael.williams1120
    Twitter – https://twitter.com/mwilliams1120
    LinkedIn – https://www.linkedin.com/in/mwilliams1120

You must be logged in to reply to this topic.