Changes for page Homeopaths

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

From version 8.2
edited by Jip-jan Alunkel
on December 03, 13:04
Change comment: Renamed from xwiki:practices.WebHome
To version 4.2
edited by Jip-jan Alunkel
on November 28, 15:08
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -15,10 +15,9 @@
15 15   "use_captcha": "false"
16 16  })
17 17  #createFormStart($form_start)
18 -
19 19  #set($address = {
20 20   "id" : "address",
21 - "type" : "address",
20 + "type" : "text",
22 22   "required" : "true",
23 23   "label" : "Address of your practice",
24 24   "aria-label" : "Input and select the address of your practice",
... ... @@ -36,6 +36,16 @@
36 36   "data-xobj-fieldname" : "address",
37 37   "help-block" : 'Input and select the address of your practice.'
38 38  })
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 +
39 39  #createFormElement($address)
40 40  #set($submit = {
41 41   "id" : "create_case",