JhumanJ / OpnForm

Beautiful Open-Source Form Builder
https://opnform.com
GNU Affero General Public License v3.0
2.17k stars 287 forks source link

Feature Request: Fill Select/Multiselect API #142

Open dgillier opened 1 year ago

dgillier commented 1 year ago

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

Thanks for considering. Denis

JhumanJ commented 1 year ago

Hey, how would you see that working?

dgillier commented 1 year ago

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 commented 3 months ago

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 commented 1 month ago

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 commented 2 weeks ago

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