Changes for page Homeopaths

Last modified by Jip-jan Alunkel on March 14, 20:13

From version 5.2
edited by Jip-jan Alunkel
on November 28, 15:10
Change comment: Renamed from xwiki:practices.WebHome
To version 5.1
edited by Jip-jan Alunkel
on November 28, 15:08
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -35,6 +35,16 @@
35 35   "data-xobj-fieldname" : "address",
36 36   "help-block" : 'Input and select the address of your practice.'
37 37  })
38 +
39 +var requestOptions = {
40 + method: 'GET',
41 +};
42 +
43 +fetch("https://api.geoapify.com/v1/geocode/autocomplete?text=Mosco&apiKey=6b74bd47f4204990b23386d8e8a0952b", requestOptions)
44 + .then(response => response.json())
45 + .then(result => console.log(result))
46 + .catch(error => console.log('error', error));
47 +
38 38  #createFormElement($address)
39 39  #set($submit = {
40 40   "id" : "create_case",