formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Resources not populated when we select Data Source Type of "Select" component as resource

Open sanjaykrgaur opened this issue 8 years ago • 5 comments

When I select the Data Source Type of a select component as resource then all resources should be populated in the resource dropdown. But resource dropdown remains empty. When I checked in developer options --> network I found that no request/API call is being made when resource is selected in the Data Source Type. Am I doing anything wrong or is there any other way of doing this? resource

sanjaykrgaur avatar Oct 17 '18 10:10 sanjaykrgaur

Hello, Thanks for reaching out! We are unable to replicate this issue on our end. You may need to set the baseUrl or the projectUrl on the Formio class so that it knows where to look for your resources are located.

We also have support packages available for training, support or development services if you are interested!

Please let me know if you have any further questions or concerns.

Thanks, William Gay Form.io Developer Support

wag110894 avatar Oct 17 '18 16:10 wag110894

Hi,

Thanks for the prompt response. I have set the baseUrl already. When I select a resource component then all resources are shown in the dropdown. Issue is only when I choose the select component and set its Data Source Type as resource. Then no resources are populated there. I am using version 3.6.3

Steps to replicate it are:-

  1. Create a resource save it with some name
  2. Now create a form and drag and drop the select component
  3. Goto tab 2 and select data source type as resource
  4. The resource created in step 1 should come in the "resources" dropdown but nothing is coming.

sanjaykrgaur avatar Oct 18 '18 05:10 sanjaykrgaur

Hi,

I upgraded to latest version 3.6.7 and the issue is resolved. Thanks for your support

sanjaykrgaur avatar Oct 18 '18 05:10 sanjaykrgaur

I got the same issue with version 4.3.0

Josephalexantony-aot avatar Oct 25 '22 11:10 Josephalexantony-aot

@Josephalexantony-aot Try upgrading to newer verison of formio.js. The latest stable version is 4.14.9.

wag110894 avatar Oct 26 '22 20:10 wag110894