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

Feature Request: Fill Select/Multiselect API #142

Open
dgillier opened this issue Jul 4, 2023 · 5 comments
Open

Feature Request: Fill Select/Multiselect API #142

dgillier opened this issue Jul 4, 2023 · 5 comments

Comments

@dgillier
Copy link

dgillier commented Jul 4, 2023

Will be great if it's possible to fill up selects/multiselects from API response !

Thanks for considering.
Denis

@JhumanJ
Copy link
Owner

JhumanJ commented Jul 11, 2023

Hey, how would you see that working?

@dgillier
Copy link
Author

Thanks for answering ;)

This will allow to have dynamic select in Opn forms (to select product category, names, job whatever), things changing often, or with too many items to fill up manually...

I'd like to be able to make a GET/POST call to an external API returning an Array of string + IDs.
This array will then be used to fill up the select.

And url + Get or Post setting params + optional header params for authentication.
(POST to use GraphQL API)

Something like that ?

@evelynDickinson
Copy link

I was hoping for this feature as well -- I'd like to provide the ability for my users to enter a zip code and call an API to look up the city, state, etc., and populate additional form fields with the data.

@TalhaKhalil
Copy link

Hello, I have currently deployed opensource version of OPN forms on my local using Docker.

And I was wondering how can I make the select component dynamic using the custom codes feature. Basically what I want to achieve is fetch data from an API and then populate a select component using that data.

Please guide me how can I achieve this in OPN Forms. The issue right now is I am not able to correctly pick the select component using custom codes.

Any help on this would be appreciated.

@JhumanJ
Copy link
Owner

JhumanJ commented Oct 16, 2024

Hi @TalhaKhalil we don't currently have a guide on how to achieve this. We'll however add this feature at some point.

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

4 participants