I’m trying to use the api option on a select field to get values from an external json, but can’t get it to work. I have added the json url in a field on the same page and want to use that value for url.
Thanks. The Panel stoped reporting error but the select i empty. If I copy the URL from the products_feed field and use it as url in my blueprint i works. So something is wrong… How can I debug the value from the field to see what’s going on?
Maybe it’s just not possible. I tried different variations and the only one I could get to work was either to hard code the URL or use the dynamic example from the docs.
The url option really wants a URL, not a file object. I don’t have time now, but maybe it would be possible with using a query instead of the API, and then in the query call a page model which in turn calls the URL in the field, reads it and return the options. Seems that the API option is not a flexible as one would expect.
I see. I will try an other solution then. Thanks for the input.
Also I noticed when I hardcoded the url in the blueprint so the select field worked, the panel got really slow…