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

administer "pre-filled" values for Public Forms #2766

Open
4 tasks done
Abhinegi2 opened this issue Jan 3, 2025 · 2 comments · May be fixed by #2780
Open
4 tasks done

administer "pre-filled" values for Public Forms #2766

Abhinegi2 opened this issue Jan 3, 2025 · 2 comments · May be fixed by #2780
Assignees

Comments

@Abhinegi2
Copy link
Contributor

Abhinegi2 commented Jan 3, 2025

... how to easily configure a "prefilled" status etc. for a form, to filter the results in the entity lists? (that's not obvious how to configure currently)

  • add new property "(something like prefilled)" to PublicFormConfig to store those values separate from displayed columns
  • alllow to add any field (not only the ones added in the "columns")
  • PublicFormComponent needs to add those separately stored fields as "hideFromForm" fields to the public form
  • what happens if the field is both in columns and in the "prefilled"?
    • --> field should be visible and show the default value
    • ❓ maybe such a field has to be readonly (because the admin wants it to always have that defined default value)
@github-project-automation github-project-automation bot moved this to Triage / Analysis in All Tasks & Issues Jan 3, 2025
@Abhinegi2 Abhinegi2 self-assigned this Jan 3, 2025
@Abhinegi2 Abhinegi2 moved this from Triage / Analysis to In Progress in All Tasks & Issues Jan 6, 2025
@sleidig sleidig changed the title ... how to easily configure a "prefilled" status etc. for a form, to filter the results in the entity lists? (that's not obvious how to configure currently) administer "pre-filled" values for Public Forms Jan 6, 2025
@Abhinegi2 Abhinegi2 linked a pull request Jan 8, 2025 that will close this issue
@Abhinegi2
Copy link
Contributor Author

@sleidig I am thinking of the following approach -

  1. Added a new select dropdown in the Public form General settings tab
  • New database field added
  • will create a component to showcase all fields related to that entity.
  1. Will the Selected field be saved in the new database field?
  • do we need to store the field key or whole formfieldconfig?
  1. In the Public form component add a check if the field is both in columns and "prefilled" Then the field should be visible and show the default value

@Abhinegi2
Copy link
Contributor Author

Hi @george-neha,

Can you please test the following functionality on the dev site: https://dev.aam-digital.net/?

  1. New Tab: Configure Default/Pre-filled Values

We have added a new tab called Configure Default/Pre-filled Values in the Public Form. This tab is used to set hidden fields and their default values for the Public Form.

Test Scenarios:

  • Default Value Behavior

  • If a selected field is present in both the columns and prefilled configuration, the field should be visible in the Public Form and display the default value.

  • If a selected field is only in the prefilled configuration, the field should not be visible in the Public Form.

  • Form Submission

  • After submitting the form (e.g., for a Child Public Form), a new entry should be created in the system.

  • The new entry should include all the submitted data, including the prefilled values that were not visible in the Public Form.

I have added tooltips and additional information to assist users in understanding this feature. However, if you have suggestions for better wording, phrasing, or syntax for the tooltips or instructions, please feel free to share your ideas.

@Abhinegi2 Abhinegi2 moved this from In Progress to Functional Review in All Tasks & Issues Jan 10, 2025
@george-neha george-neha moved this from Functional Review to Technical Review in All Tasks & Issues Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Technical Review
Development

Successfully merging a pull request may close this issue.

2 participants