Skip to content

Springfield PTA Remittance Form: some PDF template fields are not filled #6900

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

Closed
ebruchez opened this issue Mar 26, 2025 · 3 comments
Closed

Comments

@ebruchez
Copy link
Collaborator

Image
@ebruchez
Copy link
Collaborator Author

Some values are missing from the mapping, for example dues$member-dues.

<config>
    <template href="input:template" show-grid="false"/>
    <field acro-field-name="'unit-details$pta-unit-name'" value="'Springfield PTA'"/>
    <field acro-field-name="'unit-details$unit-number'" value="'12345'"/>
    <field acro-field-name="'unit-details$unit-address'" value="'742 Evergreen Terrace'"/>
    <field acro-field-name="'submission-details$submitter-name'" value="'Homer Simpson'"/>
    <field acro-field-name="'submission-details$submitter-phone'" value="'(939) 555-0113'"/>
    <field acro-field-name="'submission-details$submitter-pta-position'" value="'Parent'"/>
    <field acro-field-name="'submission-details$submitter-email'" value="'[email protected]'"/>
    <field acro-field-name="'submission-details$comment'" value="'D''oh!'"/>
    <field acro-field-name="'dues$control-4'" value="'Per Capita Dues (due monthly)'"/>
    <field acro-field-name="'dues$control-3'" value="'One time annual Council Dues (due 11/1)'"/>
    <field acro-field-name="'dues$include-annual-dues'" value="'true'"/>
    <field acro-field-name="'dues$include-annual-dues'" export-value="'true'"/>
    <field acro-field-name="'dues$control-9'" value="'Donation (optional)'"/>
</config>

@ebruchez
Copy link
Collaborator Author

Regressed with #6707.

Before #6707:

  • single binding for fr|number
  • the binding, unlike most, still used the "view" representation for PDF templates

After #6707:

  • introduced a new binding for fr|number[fr|static-readonly = true]
  • now uses general rule for annotating with static-readonly, which disables the "view" appearance for PDF templates

See also #3800 for the original support of fr:number in PDF templates.

@ebruchez
Copy link
Collaborator Author

There are several distinct outputs:

  • new/edit: use regular interactive controls HTML markup
  • view/automatic PDF: use simplified "view", "field", non-interactive control markup
  • PDF template: use the regular interactive control

Options:

  • controls.xsl special-cases fr:number, etc.
  • add another annotation instead of fr:static-readonly, maybe fr:pdf-template
    • then individual XBL bindings could choose to bind to one or the other or none

@ebruchez ebruchez moved this to Done in Orbeon Forms 2025.1 Mar 27, 2025
@ebruchez ebruchez moved this from In progress to Done in Orbeon Forms 2024.1.1 Mar 27, 2025
ebruchez added a commit that referenced this issue Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant