Skip to content
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

Merged
merged 3 commits into from
Aug 7, 2018
Merged

Add form read/write API #107

merged 3 commits into from
Aug 7, 2018

Conversation

irgendeinich
Copy link
Contributor

This adds the android counter part to #106

Copy link
Contributor

@radazzouz radazzouz left a 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 👍

{
name: "Programmatic Form Filling",
description:
"Shows how to programatically read and write PDF forms.",
Copy link
Contributor

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) {
Copy link
Contributor

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);
Copy link
Contributor

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?

irgendeinich added 2 commits August 7, 2018 10:41
Change order of setFormFieldValue parameters
@irgendeinich irgendeinich merged commit 0500bba into master Aug 7, 2018
@irgendeinich irgendeinich deleted the reinhard/forms-api branch August 7, 2018 12:33
@radazzouz radazzouz mentioned this pull request Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants