I’m trying to get the value of these fields but even with the value of the server variable the result doesn’t work. It’s a json.
My blocks :
I’m trying to get the value of these fields but even with the value of the server variable the result doesn’t work. It’s a json.
My blocks :
Could you provided the api url that you are using ?
Can I show only the generated Json? Because the api is from a private site.
JSOn:
{“items”:[{“novoCampo”:“wix:document://v1/ugd/79adfb_cfb6961857204eaaac778ddb35adb971.docx/FORMUL%C3%81RIO%20PARA%20EXECU%C3%87%C3%83O%20DE%20OBRA%20SIMPLES.docx”,"_id":“23387182-9ea9-4bcf-928e-6873a759d04d”,"_owner":“79adfbc6-692f-4a86-84f3-5ba0cfa17e5b”,"_createdDate":“2022-02-08T19:22:53.212Z”,"_updatedDate":“2022-02-08T19:57:48.768Z”,“imagem”:“wix:image://v1/79adfb_6427c301c4fb4fea9d6e3e1ff0bc8e9e~mv2.png/obras2.png#originWidth=256&originHeight=256”,“title”:" Formulário para execução de Obras Simples “,“link-downloads-1-all”:”/downloads-1/"},{“novoCampo”:“wix:document://v1/ugd/79adfb_1f2b4a1c69794d4db56e4578522af517.pdf/PROCEDIMENTOS%20PARA%20OBRAS%20E%20REFORMAS%20-%20CONDOM%C3%8DNIO%20MULTIEMPRESARIAL%2020.09.2018.pdf”,"_id":“72f7041b-096c-4e01-a2cf-e676f0287a6f”,"_owner":“79adfbc6-692f-4a86-84f3-5ba0cfa17e5b”,"_createdDate":“2022-02-08T19:21:10.940Z”,"_updatedDate":“2022-02-08T19:58:02.129Z”,“imagem”:“wix:image://v1/79adfb_a3f0290ba1254a039e041b22b1c13cfd~mv2.jpg/procedimentos.jpg#originWidth=260&originHeight=340”,“title”:" Procedimentos para execução de obras e reformas “,“link-downloads-1-all”:”/downloads-1/"},{“novoCampo”:“wix:document://v1/ugd/79adfb_da7111afead6454b9d7bf87ead00b7c8.pdf/CONVEN%C3%87%C3%83O%20DE%20CONDOM%C3%8DNIO%20APROVADA%20EM%2025.04.2019.pdf”,"_id":“fab25fb3-78a0-4498-a7e8-efafad70b017”,"_owner":“79adfbc6-692f-4a86-84f3-5ba0cfa17e5b”,"_createdDate":“2022-02-08T19:11:26.531Z”,"_updatedDate":“2022-02-08T19:41:19.069Z”,“imagem”:“wix:image://v1/79adfb_a2e95620543b4869929b42ccfc55f7bc~mv2.png/LOGO%20CENTRO%20MULTIEMPRESARIAL%20Vetorizado%20Menor.png#originWidth=565&originHeight=428”,“title”:“Convenção do Condomínio”,“link-downloads-1-all”:"/downloads-1/"},{“novoCampo”:“wix:document://v1/ugd/79adfb_422f74e0ffde4a75b6abb8bc34948e2d.pdf/REGIMENTO%20INTERNO%20MULTI.pdf”,"_id":“d296a2fa-0be8-42b5-a4d3-abc1efefdde5”,"_owner":“79adfbc6-692f-4a86-84f3-5ba0cfa17e5b”,"_createdDate":“2022-02-08T13:03:16.734Z”,"_updatedDate":“2022-02-08T19:58:18.075Z”,“imagem”:“wix:image://v1/79adfb_56ea6f4cf2554d919ae707d73fcee4cc~mv2.jpg/reg%20int.jpg#originWidth=400&originHeight=334”,“title”:" Regimento Interno do Condominio Multiempresarial “,“link-downloads-1-all”:”/downloads-1/"}]}
Now it worked here too. Now I need to turn each item into an a url. Is it possible with blocks?
You should search google to see how you can convert wix:image: url to public wixstatic url
No. But my idea is to replace the written part wix:image with a valid url but it’s not working
Yes, you are right about the API.
As for the blocks you marked, it is precisely the error that I am not able to resolve.
Incredible. You did the same thing as me but with less code. Thanks.
Now I just need to make a mask for the link. For example: wherever the link “http://www.wix.static…” appears to the user the name of that specific link, for example “item a”, but when I click on “item a” direct me to the link. Is this possible in a listpicker?
one more feature?
Did You try , If condition… Lists…Index… dictionary… Maybe You Can Make
Follow above suggestion and I believe problem was solved since topic was regarding retrieving data from json. Please do not go #off-topic
Really . I wanted to take advantage of the topic for one more ease, but it’s solved yes. Thanks.!!!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.