Hello,
I inject a CheckBox with 'X', while signing, getting this message 'Form is inComplete'.
Please provide help about this issue.
Thanks
January 30Created
January 21Last Updated
5 years agoLast Reply
17Replies
185Views
2Users
0Likes
0Links
mwilliams | Posts: 957
Reply to: CheckBox Inject Field
Wednesday, January 30, 2019 at 11:23am
0
votes
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?
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
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!
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.
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
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:
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
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.
I am able to set the default value without issue, as well. I did notice something odd if I specify the ID of a field, in my .NET SDK code. I get this error when I try to sign:
"Something went wrong and your request could not be completed. Please try again."
If I do not set an ID for the field, I do not receive this error and the transaction completes as expected.
This happens for all field types, it seems, so, probably isn't the issue you're having.
Otherwise, if I set the default value to selected, with the checkbox required or not required, I do not have any issues. I'll try a couple more things and update you.
Yes. I am using the .NET SDK v11.19 against Canada Production environment.
I even tried setting the value after the checkbox already existed in a package:
This works to set the value after the field already exists. IF you are requiring the check box, it has to be selected to sign the document. If you don't want the checkbox value to be required to be checked, remove the "required" validation from the checkbox. If you set the check box to required and do not select it, you will get an error about a required checkbox.
Let me know.
Reply to: CheckBox Inject Field
Wednesday, January 30, 2019 at 11:23amReply to: CheckBox Inject Field
Wednesday, January 30, 2019 at 11:26amReply to: CheckBox Inject Field
Wednesday, January 30, 2019 at 11:34amReply to: CheckBox Inject Field
Wednesday, January 30, 2019 at 11:34amReply to: CheckBox Inject Field
Wednesday, January 30, 2019 at 11:37amReply to: CheckBox Inject Field
Wednesday, January 30, 2019 at 11:53amReply to: CheckBox Inject Field
Wednesday, January 30, 2019 at 11:57amReply to: CheckBox Inject Field
Thursday, January 31, 2019 at 04:23amReply to: CheckBox Inject Field
Thursday, January 31, 2019 at 04:36amReply to: CheckBox Inject Field
Thursday, January 31, 2019 at 04:45amReply to: CheckBox Inject Field
Thursday, January 31, 2019 at 04:59amReply to: CheckBox Inject Field
Thursday, January 31, 2019 at 06:53amReply to: CheckBox Inject Field
Thursday, January 31, 2019 at 07:00amReply to: CheckBox Inject Field
Thursday, January 31, 2019 at 07:21amReply to: CheckBox Inject Field
Thursday, January 31, 2019 at 07:41amReply to: CheckBox Inject Field
Thursday, January 31, 2019 at 08:14amReply to: CheckBox Inject Field
Thursday, January 31, 2019 at 08:46am