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

adf-form in APS context issue for autocomplete field with REST retrieved options #7771

Open
JunHog opened this issue Aug 16, 2022 · 0 comments

Comments

@JunHog
Copy link

JunHog commented Aug 16, 2022

Type of issue: (check with "[x]")

  • New feature request
  • Bug
  • Support request
  • Documentation

Current behaviour:
adf-form in APS context sends an object with the values of restIdProperty and restLabelProperty as properties when using an autocomplete field with REST retrieved options different than id/name and the endpoint is not accepting it.

Expected behavior:
The form should still send a request with "id"/"name" properties in the object or the endpoint should accept the mapping set via APS.

Steps to reproduce the issue:
I am using an adf-form to display an APS task with a form including an Autocomplete required field with options from a custom API and a different format than "id"/"name". The property ID and the property label in APS are set to "nodeId" and "nom" so the adf-form is sending in the request an object with these properties, making the endpoint responding an HTTP400 and saying the required field isn't completed. This was working in ADF4.4.0 and the request was made using "id"/"name" properties for the object.
In the case the field is not required it looks like the value is not getting received by the endpoint either, but no error is catched.

Component name and version:
adf-form in v4.11.0

Browser and version:
[all]

Node version (for build issues):
14.15.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant