formtools / core

The Form Tools Core.
https://formtools.org
207 stars 78 forks source link

Smart Fill not importing all values when using JSON to populate Select Dropdown List #633

Closed radasys closed 4 years ago

radasys commented 4 years ago

Dear Ben,

Thanks for your hard work developing FormTools!

I have been struggling with this issue with an external form: I have a long select dropdown list and to clarify and clean my code I created a JSON file with names and values (as stated here: https://www.codebyamir.com/blog/populate-a-select-dropdown-list-with-json). Then I populate the select dropdown list using jQuery, so when I have to add/remove an option I would only edit the JSON file instead of going through HTML.

The form web page loads pretty well, but when trying to update the option list through the Edit Option List page, I receive only the first disabled value (in the example, 'Choose State/Province', in my case 'Seleccione...').

First, I thought it was something with jQuery so I tried to load values from JSON using XMLHttpRequest but it didn't work too.

Could you assist us?

Thank you!

radasys commented 4 years ago

I have managed to solve the issue changing the field type to Textbox, so Smart Fill does not need to populate anything.

Thanks!