• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

A checkbox field populates correctly on single-page form but not on multi-page form

Community Beginner ,
Nov 10, 2024 Nov 10, 2024

Copy link to clipboard

Copied

A form with two check boxes populate correctly when the form is a single page, but not when the form has multiple pages. The check boxes represent "Home Office" or "Other Location" and should be an "OR" condition without using radio buttons. Most of the forms are a single page, so the field ids never increment. Multi-page forms show home office#0 and other location#0 on the first page, and then increment to home office#1 and other location#1 on the second page. When the same data source is used, the single page shows one or the other selected, while the multiple page shows the check box selected for both options, across pages.

TOPICS
PDF forms

Views

192

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 10, 2024 Nov 10, 2024

Copy link to clipboard

Copied

Make sure that the fields have a unique export value. Check-boxes with the same name and export value are selected in unison automatically.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 10, 2024 Nov 10, 2024

Copy link to clipboard

Copied

Thank you for your response, but I don't have enough context to understand. I'll clarify my question in hopes of helping bridge the gap. The field id is 'home office' on both pages. When I "Prepare a Form", I see that Adobe has automatically recognized the field id as being the same, and is creating some kind of relationship to indicate the first and second instance of this field id with the "#0" and "#1" appended to the end. I expect the same information to show on both pages. What I has me baffled is why the data would populate unchecked on a single-page form, and the same data and field id name shows as checked on a two-page form. If I delete the second use of the field, the first use updates and is showing unchecked as expected.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 11, 2024 Nov 11, 2024

Copy link to clipboard

Copied

I don't quite follow... Are you saying that some fields with the same export value are checked together automatically (if on the same page), and others are not (if on different pages)? That should not happen. Could you share a sample file that demonstrates this issue?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 11, 2024 Nov 11, 2024

Copy link to clipboard

Copied

I cannot share the file. I also do not understand what an "export value" is referring to. I am able to see "Export Value" is "On" in the properties but am not finding any documentation that explains this well (especially since "export" has other meanings in the app).

 

Singe page pdf has field ids for check boxes mapped to a data source for each field. The data is actually more similar to a radio button. If one is checked, the other would not be because of rules for how the data is input.

home office

other location

 

When the same ids using the same data source is added on a form where the field id is repeated across pages (similar to a header in a document), then the field id is automatically adjusted by Adobe to indicate which iteration of the same data is being populated.

Page 1:

home office#0

other location#0

Page 2:

home office#1

other location#1

When I preview the form, BOTH check boxes are checked across both pages. If I delete the field id on either page, then the data once again populates correctly. 

Note that field ids that are not associated with check boxes are correctly populated when the same id is used across multiple pages.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 11, 2024 Nov 11, 2024

Copy link to clipboard

Copied

What do you mean with "data source" ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 11, 2024 Nov 11, 2024

Copy link to clipboard

Copied

There is code that is pulling data from a database to populate fields in the form. An example use would be invoicing. Someone orders parts online and then you print the invoice include in the shipment. No one is physically filling in the form; a field in the database is mapped to a field on the form and the output (like shipment 123 for customer XYZ) is populated on the form.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 11, 2024 Nov 11, 2024

Copy link to clipboard

Copied

May be that this is a issue of the code.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 11, 2024 Nov 11, 2024

Copy link to clipboard

Copied

> May be that this is a issue of the code.

Agreed. That's the most likely culprit.

 

An Export Value is just the value that the field has when that specific widget is selected.

It's called that because it is the value you will get when you export the form data, as opposed to the value you might see on the screen (this applies more to a drop-down field, though, as check-boxes don't actually have a Display Value).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 18, 2024 Nov 18, 2024

Copy link to clipboard

Copied

I'm struggling to understand how the code is the problem. I created a second copy of the form where I gave the field id on the second page a unique name, "home office pg 2"; Adobe automatically removed the "#0" from the first field name since it is not referenced in multiple places. Mapping the data to two unique fields for check boxes populates the data correctly. The data for non-check box fields populates correctly across pages. The code returns the same value for the check box regardless of how Adobe is managing repeated fields, so I do not believe the problem is with the code.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 18, 2024 Nov 18, 2024

Copy link to clipboard

Copied

LATEST

It looks like the Export Value you mentioned was the cause. Clearing the field is showing expected results.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines