-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add form read/write API #107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Javascript part LGTM 👍
samples/Catalog/Catalog.android.js
Outdated
{ | ||
name: "Programmatic Form Filling", | ||
description: | ||
"Shows how to programatically read and write PDF forms.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shows how to programatically read and write PDF forms
The "write" part implies that forms are being created to me. Can we change this to mention this is about filling forms and reading filled values.
Also "programatically" should be "programmatically" (double 'm').
index.js
Outdated
* | ||
* @platform android | ||
*/ | ||
setFormFieldValue = function (value, fullyQualifiedName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Order of parameters: why is the value parameter specified before target field fqn param? Is this a JS convention?
} else if (formElement instanceof ChoiceFormElement) { | ||
ChoiceFormElement choiceFormElement = (ChoiceFormElement) formElement; | ||
try { | ||
int selectedIndex = Integer.parseInt(value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about multi-selectable choice fields?
Change order of setFormFieldValue parameters
c9fc73b
to
be45f79
Compare
This adds the android counter part to #106